Ala Heno wrote: > I would like to define an element that can have either another element > as a child or a simple text but not both, e.g:
If you want the parser to validate that you only use one form or the other but not both, you're out of luck. DTDs and Schema cannot specify this kind of constraint on content models. I believe the Trex schema language (and thus probably RelaxNG) can define these types of grammars. But there is no direct support for these schema languages in Xerces. There are other separate validators available. -- Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
