Jump to content

I Have Big Problem with schema :(

Guest radobject

Recommended Posts

Guest radobject

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...