You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Вадим Солонович <vs...@park.ru> on 2001/04/06 19:36:55 UTC

Need help with XML Schema

Hi,
I am trying to write my first XML schema for a complex document and need someone's help very much.
Having the following example :

<header>
  <a/>
<header>
<body>
  <sub><a/>...</sub>
</body>

If it is possible to express in XML schema definition language that element <a/> may be omitted in <sub>, but _if_ it it is present in <header>, or element <a/> _must_ be present in <sub> if not present in <header>? Any help or would be greatly appreciated.

Thanks in advance,
    Vadim Solonovich

WARNINGS

Posted by Paul Flanagan <pa...@onetel.net.uk>.
Can any body tell me how I reproduce a WARNING, in order to test the Xerces
parser.  I have tried creating an element or attribute twice and missing out
an element (according to DTD) but they either bring up a FATAL ERROR or an
ERROR.  I am using Xercies 1.3.0.

Thanks in advance

Paul


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org