• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 734
7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Tsuji,

Thanks for the suggestion. I will implement it.

Thanks again,

Smita
 
Let nothing stop you! Not even this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic