The moose likes XML and Related Technologies and the fly likes need help in XSD. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "need help in XSD." Watch "need help in XSD." New topic
Author

need help in XSD.

S. Nitesh
Ranch Hand

Joined: Jan 15, 2010
Posts: 31

Hi,

I am a newbie in xsd.
I want to construct xsd for following xml format.

<a>
<b>some text<b/>
<c>some int<c/>
<d>some decimal<d/>
</a>

the main thing is that the xsd should allow <b>,<c> and <d> in any order with more than one occurrence of tag <d>.

thanks in advance.

-Nitesh


This message was edited 1 time. Last update was at by Nitesh Sakargayan

Juraj Somorovsky
Greenhorn

Joined: Feb 04, 2010
Posts: 1
Hi Nitesh,

There is the XSD schema:



The solution has one constraint: The <d> element cannot be used as a first element in <a>.
I don't know if it could be solved better, this is the best solution I've found.

However, I hope it will help you.

Juraj
S. Nitesh
Ranch Hand

Joined: Jan 15, 2010
Posts: 31

Thanks Juraj.

It worked....
Thanks again.

-
Nitesh
 
 
subject: need help in XSD.
 
developer file tools