Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

schema newbie  RSS feed

 
keith doyle
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure. Just don't use the xsd:sequence to group these elements.

- m
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!