DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6875>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6875 Incorrect Line-position for wrong element Summary: Incorrect Line-position for wrong element Product: Xerces-C++ Version: 1.6.0 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Validating Parser (Schema) (Xerces 1.5 or up only) AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi ! Using the following simple schema <?xml version="1.0" encoding="UTF-8"?> <!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Ulrich Arnold (Beratung - Systemanalyse) --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="Root"> <xs:complexType> <xs:sequence> <xs:element ref="A"/> <xs:element ref="B"/> <xs:element ref="C"/> <xs:element ref="D"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="A"/> <xs:element name="B"/> <xs:element name="C"/> <xs:element name="D"/> </xs:schema> and this xml <?xml version="1.0" encoding="UTF-8"?> <!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Ulrich Arnold (Beratung - Systemanalyse) --> <!--Sample XML file generated by XML Spy v4.3 U (http://www.xmlspy.com)--> <Root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Bug.xsd"> <A> aa aa aa </A> <X> bb bb bb </X> <C> cc cc cc </C> <D> dd dd dd </D> </Root> xerces emits the following messages Error at file "d:\xml\Bugs\bugx.xml", line 10, column 5 Message: Unknown element 'X' Error at file "d:\xml\Bugs\bugx.xml", line 25, column 8 Message: Element 'X' is not valid for content model: '(A,B,C,D)' where line 10 pinpoints the problem. But if the element is known, but not ok at this position as in <?xml version="1.0" encoding="UTF-8"?> <!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Ulrich Arnold (Beratung - Systemanalyse) --> <!--Sample XML file generated by XML Spy v4.3 U (http://www.xmlspy.com)--> <Root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Bug.xsd"> <A> aa aa aa </A> <D> bb bb bb </D> <C> cc cc cc </C> <D> dd dd dd </D> </Root> the only message is Error at file "d:\xml\Bugs\bugd.xml", line 25, column 8 Message: Element 'D' is not valid for content model: '(A,B,C,D)' which does not lead to the problem in line 10 Uli --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
