permaculture playing cards*
The moose likes XML and Related Technologies and the fly likes need help in XSD. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
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: 36
    
    1

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


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: 36
    
    1

Thanks Juraj.

It worked....
Thanks again.

-
Nitesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need help in XSD.