You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Eric Chijioke <er...@hotmail.com> on 2002/01/22 18:58:36 UTC

Xerces2 beta4 parsing bug

I have a XML file that i would like to parse with Xerces.   Parsing it with 
Xerces 1.x and Crimson1.1.3 returns the Document as it should (just as 
viewed with any text editor), however, parsing it with Xerces2.0beta4 
consistently reorders the String value of ONE tag, and it is always the same 
child-tag of the 20th tag below the root.  The schema (simply) is as 
follows:



  <xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" 
elementFormDefault="qualified">
	<xsd:element name="groups">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="group" maxOccurs="unbounded">
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element name="entityServer" type="xsd:string"/>
							<xsd:element name="dataset" type="xsd:string"/>
							<xsd:element name="entityKey" type="xsd:string"/>
							<xsd:element name="entityTemplate" type="xsd:string" minOccurs="0"/>
							<xsd:element name="validAttributes">
								<xsd:complexType>
									<xsd:sequence>
										<xsd:element name="attribute" type="xsd:string" minOccurs="0" 
maxOccurs="unbounded"/>
									</xsd:sequence>
								</xsd:complexType>
							</xsd:element>
						</xsd:sequence>
						<xsd:attribute name="name" type="xsd:string" use="required"/>
					</xsd:complexType>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>




OR as xml data:


  <groups>
       <group name="value">...    n=0
       <group name="value">...
         "
         "
       <group name="value">      n=19
          <entityServer/>...
          <dataset>Beginning of this string gets moved to end!<tabAB>
          <entityKey/>
          <entityTemplate>       (optional)
          <validAttributes/>
              <attribute>
                 "
              <attribute>
       </group>
          "
          "
       <group name="value">...     n=x
</groups>


It is always text value of the "dataset" element of the 20th group tag that 
get parsed incorrectly. EVEN if I reorder the groups!

Thanks,
        Eric

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org