XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Nitesh JaruharSubject: XML not validating against its own Schema
Author: Nitesh Jaruhar
Date: 20 Dec 2006 09:43 PM
Hi,

We have generated the schema of one of out objects and then also generated an xml for that container. Theoretically, there is no reason why the two would be out of synch considerring the XML was generated from the schema.

However, when we validate in Stylus Studio we get an error saying that the XML is not valid against the schema. Others (e.g. XML spy are saying that the XML is valid against the schema). Why is this happening.

Please see attached files.

Cheers,
Nitesh


DocumentVitriaData.xml


UnknownListOfSampleContact.xsd


UnknownListOfSampleContact(1).xsd

Postnext
Ivan PedruzziSubject: XML not validating against its own Schema
Author: Ivan Pedruzzi
Date: 20 Dec 2006 11:09 PM

The schema posted defines a target namespace
targetNamespace="http://www.siebel.com/xml/Sample%20Contact"

Therefore the global element SiebelMessage should be defined in that namespace.

Most of the schema processors report the error (MSXML, .NET, Xerces, Saxon)

To make the xml document valid you should override the default namespace
<SiebelMessage
xmlns="http://www.siebel.com/xml/Sample%20Contact"


Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
Nitesh JaruharSubject: XML not validating against its own Schema
Author: Nitesh Jaruhar
Date: 21 Dec 2006 03:21 AM
Thanks for getting back to me.

Since the schema and XML are generated by Siebel - I have raised a support request with them to find why they are defining namespaces in such a way so as to cause this problem. They are investigating this. Initial response was that when they validate using XML Spy they got no errors. However, SS was giving errore.

We do not want to manually have to edit those files are we are dealing with 100 or so XSDs.

Will let you know how it progresses with Siebel support.

Thanks,
Nitesh

Posttop
Minollo I.Subject: XML not validating against its own Schema
Author: Minollo I.
Date: 21 Dec 2006 09:21 AM
Just to make this clear: this is not a Stylus vs. other products issue; this is a matter of relying on a conformant XML Schema validation engine or not.

Stylus Studio relies by default on Apache Xerces C++ for schema validation; and from inside Stylus Studio you can check how other validation engines behave (just click on the down arrow next to the Validate button): Saxonica Saxon SA, Apache XercesJ, MSXML, .NET... they will all advise you that your XML is not valid against the XML Schema you provided.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.