aspose file tools*
The moose likes XML and Related Technologies and the fly likes How to modify XSD that allows XML to hold the base and derived element types in any order? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to modify XSD that allows XML to hold the base and derived element types in any order?" Watch "How to modify XSD that allows XML to hold the base and derived element types in any order?" New topic
Author

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

Smita Talawadekar
Greenhorn

Joined: Jan 21, 2008
Posts: 9
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

Joined: Jan 18, 2011
Posts: 535
    
    3
>... 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

Joined: Jan 21, 2008
Posts: 9
Hello Tsuji,

Thanks for the suggestion. I will implement it.

Thanks again,

Smita
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to modify XSD that allows XML to hold the base and derived element types in any order?