Guest radobject Posted January 15, 2007 Share Posted January 15, 2007 Hi All,I have an xml file: <PartList > <Part> <ID>1</ID> <FLN ID="F051601001">hello</FLN> <FLN ID="F051601002">3400</FLN> <FLN ID="F051601003">40</FLN> </Part> <Part> <ID>2</ID> <FLN ID="F051601004"> <CFLN ID="1">10</CFLN> <CFLN ID="2">2</CFLN> <CFLN ID="3">4</CFLN> <Total>16</Total> </FLN> </Part></PartList >I want to write xsd for it. I have problem with FLN tag, it can get anytype like string,integer or elemnt like CFLN and total. If it hase element, It must get CFLN or CFLN and Total. (Total elemnt must use with CFLN)If it get data like hello,5,1.5 or ... it doesn't have elemnt.Anybody can help me for writing XSD for this XML. I want to control ID attribute for FLN and CFLN too.Best regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now