Win a copy of Learn Java with Math: Using Fun Projects and Games this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

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

 
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.

 
Ranch Hand
Posts: 729
7
  • 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
 
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!