Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!