- From: Neill Smith <smith_neill@hotmail.com>
- Date: Thu, 7 Feb 2002 10:44:25 -0500 (EST)
- To: xmlschema-dev@w3.org
Hi, I am having really difficulty with this problem. Any advice would be greatly appreciated. The problem is that I get the error message Unexpected child element 'AAADataLines'. Can anybody assist, please see the code below. I think it has something to do with Blank XML tags <AAADatalines> inside another blank XML tag <AAADataLine>. Any help would be great I have tried put the lines of code in different places but still no good. Both files are well formed etc. I appreciated this must/might seem unclear. XML File ******** <AAADataSheets> <AAADataSheet> <Sheet_Number>123</Sheet_Number> <Country>S</Country> <LFA_NLFA_IND>5</LFA_NLFA_IND> <AAADataLines> <---this is where I get the Unexpected child element <AAADataLine> <Line_Number>X</Line_Number> <Line_Sequence>X</Line_Sequence> XSD File ******** ............. <xsd:element name="AAADataSheets" type="AAAClaims:AAADataSheetStructure"/> <xsd:element name="AAADataLines" type="AAAClaims:AAADataLineStructure"/> ............. <xsd:complexType name="AAADataSheetStructure"> <xsd:annotation> <xsd:documentation>This node holds details of AAADataSheets.</xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="AAADataSheet" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name="Sheet_Number" type="AAAClaims:SheetNumberType"/> <xsd:element name="Country" type="AAAClaims:CountryType"/> <xsd:element name="LFA_NLFA_IND"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="1"/> <xsd:maxLength value="1"/> <xsd:pattern value="[0-9]{1}"/> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="AAADataLineStructure"> <xsd:annotation> <xsd:documentation>This node holds details of AAADataLine.</xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="AAADataLine" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name="Line_Number" type="AAAClaims:LineNumberType"/> <xsd:element name="Line_Sequence" type="AAAClaims:LineSequenceType"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
Received on Thursday, 7 February 2002 16:46:03 UTC