Re: XML Schema : Validating contents of one tag with another

Hi Krishna,

> How do I write a contraint in XML Schema document that validates
> content of a tag based on content of another. e.g. below : The
> AIRBILL can have a value only when CARR_CODE has a value otherwise
> not.

I'm afraid that XML Schema doesn't let you articulate these kinds of
constraints. You could use another schema language, such as RELAX NG
or Schematron as a schema adjunct to validate against these kinds of
rules.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Thursday, 17 January 2002 09:11:33 UTC