Hi all - just started doing some XML/XSD at work and just wanted to ask something. I have an element with several children, lets say that they are just all strings, is there a way to be able to restrict the length of each one to x characters, WITHOUT having to make that element a simpletype?
Its just that i could have lots of them eventually, and dont want to have to have it nested too many times and it looks unwieldy. is there a way to achieve this inline?
Thanks for any help - sure it will be simple...Code:<xs:element name="myThing" > <xs:complexType> <xs:sequence> <xs:element name="model" type="xs:string"/> <xs:element name="terminal" type="xs:string"/> <xs:element name="userID" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element>
JP


LinkBack URL
About LinkBacks
Reply With Quote

