XSD Validation of XML

V

volatile.memory

I have an XSD that defines a type of engine. Depending upon which of
the 200 <engineType>s is selected there are different legal values for
<part> fields like <partLife> and <partCost>.

I would like to use XSD to validate the XML to ensure that lives and
costs for parts are correct, but I don't see a way to do that without
creating separate XSD for each engine, which is silly because -- with
the exception of the valid range for part data -- the XSD holds for
all engines.

How have others tackled this one?

vm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top