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

How to modify XSD that allows XML to hold the base and derived element types in any order?

 
Smita Talawadekar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

My current XSD looks like this:



This XSD does expects the parent(base) elements before the derived elements. But, the client can send XML having elements in any order...e.g.:



i.e. the client can send the elements in any order of the base and the derived type.

How do then I modify my current XSD to validate such type of XML?

Thanks in advance.

 
g tsuji
Ranch Hand
Posts: 656
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>... that allows XML to hold the base and derived element types in any order?
>How do then I modify my current XSD to validate such type of XML?
I don't think it is very well-conceived approach to fit some construction with a fixed idea of the title suggests. If you can abandone the said "fixed idea", you can make a considerable rewrite to allow the demo xml be validated with substantial clarity.
 
Smita Talawadekar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Tsuji,

Thanks for the suggestion. I will implement it.

Thanks again,

Smita
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic