aspose file tools*
The moose likes XML and Related Technologies and the fly likes schema newbie 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 "schema newbie" Watch "schema newbie" New topic
Author

schema newbie

keith doyle
Greenhorn

Joined: Jan 25, 2005
Posts: 15
Can a schema be used to define pre-requesite tags when the tags in the xml could arrive in any order?
i.e.

<order></order>
<name></name>
<id></id>

next xml request:

<order></order>
<id></id>
<name></name>

much thanks keith
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Sure. Just don't use the xsd:sequence to group these elements.

- m


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: schema newbie