Newbie needs help with a schema.
-
I hate "why doesn't this work" posts but I'm at wits end. Here's a snippet of my xml schema (I took off the angle brackets so it would show up). msgIDType and TextFieldType are defined later in the file.
?xml version="1.0"?
xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsd:element name="message"
xsd:complexType
xsd:sequence
xsd:element name="msgID" type="msgIDType"
xsd:element name="TextField" type="TextFieldType"
/xsd:sequence
/xsd:complexType
/xsd:elementNow I'm using a simple validation script that is based on MSXML4 it returns this error...
Error: End tag 'xsd:sequence' does not match the start tag 'xsd:element'
I've checked all sequences and elements and each one has a matching end tag. I've also made sure that one doesn't begin before the other ends. So what else am I missing?:confused: nay
-
I hate "why doesn't this work" posts but I'm at wits end. Here's a snippet of my xml schema (I took off the angle brackets so it would show up). msgIDType and TextFieldType are defined later in the file.
?xml version="1.0"?
xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsd:element name="message"
xsd:complexType
xsd:sequence
xsd:element name="msgID" type="msgIDType"
xsd:element name="TextField" type="TextFieldType"
/xsd:sequence
/xsd:complexType
/xsd:elementNow I'm using a simple validation script that is based on MSXML4 it returns this error...
Error: End tag 'xsd:sequence' does not match the start tag 'xsd:element'
I've checked all sequences and elements and each one has a matching end tag. I've also made sure that one doesn't begin before the other ends. So what else am I missing?:confused: nay
If all you removed was the angle brakets then your "middle" xsd:elements are not terminated. nay wrote: xsd:element name="msgID" type="msgIDType" xsd:element name="TextField" type="TextFieldType" should be: xsd:element name="msgID" type="msgIDType"/ xsd:element name="TextField" type="TextFieldType"/ And would give you the mentioned error. To be conscious that you are ignorant of the facts is a great step towards Knowledge. Benjamin Disraeli
-
If all you removed was the angle brakets then your "middle" xsd:elements are not terminated. nay wrote: xsd:element name="msgID" type="msgIDType" xsd:element name="TextField" type="TextFieldType" should be: xsd:element name="msgID" type="msgIDType"/ xsd:element name="TextField" type="TextFieldType"/ And would give you the mentioned error. To be conscious that you are ignorant of the facts is a great step towards Knowledge. Benjamin Disraeli