wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "need help in XSD." Watch "need help in XSD." New topic

need help in XSD.

S. Nitesh
Ranch Hand

Joined: Jan 15, 2010
Posts: 36


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

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

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.


Juraj Somorovsky

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.

S. Nitesh
Ranch Hand

Joined: Jan 15, 2010
Posts: 36

Thanks Juraj.

It worked....
Thanks again.

It is sorta covered in the JavaRanch Style Guide.
subject: need help in XSD.
Similar Threads
operation parameters - uml question
JAXB Exception - unable to extract the schema information etc
Jscript - java and authorizenet
validate a xpath against XSD