Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

schema newbie

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic