File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
wood burning stoves
 
subject: schema newbie
 
Similar Threads
XML and XSLT not working
How to convert java object into xml .Object contains contains cyclic references
[schema] Allow an element to have any content
tag-value should be unique ...
Usage of xs:choice to OR but not XOR alternatives