Re: How to define a "anywhere" node in my XSD




david.deridder@xxxxxx wrote:
Hi,

I would like to specify in my XSD that the "Documentation" element can
be added everywhere in the XML document. A bit like the
xs:documentation node.

How can i declare this in my XSD?

An example
<a>
<b>
<Documentation/>
</b>
</a>

is valid

but also

<a>
<Documentation/>
<b>
<Documentation/>
</b>
<Documentation/>
</a>

Thanks for the help
David

What you are asking for is equivalent to an inclusion in SGML. You
might want to look the SGML way if its an option to you. The price you
pay for more flexibility is a bigger complexity headache :).

Regards
Jeff

.



Relevant Pages

  • Re: How to define a "anywhere" node in my XSD
    ... david.deridder@xxxxxx schreef: ... I would like to specify in my XSD that the "Documentation" element can ... be added everywhere in the XML document. ... How can i declare this in my XSD? ...
    (comp.text.xml)
  • How to define a "anywhere" node in my XSD
    ... I would like to specify in my XSD that the "Documentation" element can ... be added everywhere in the XML document. ... How can i declare this in my XSD? ...
    (comp.text.xml)
  • Re: How to define a "anywhere" node in my XSD
    ... I would like to specify in my XSD that the "Documentation" element can ... be added everywhere in the XML document. ...
    (comp.text.xml)
  • normalizing sgml to xml - how to handle random tags
    ... Boeing) to XML in order to better work with it. ... Convert the SGML to XML. ... Write an XML XSD that corresponds to the SGML DTD. ... SGML tags that have a start but no ending tag... ...
    (comp.text.sgml)
  • Re: How to define a "anywhere" node in my XSD
    ... be added everywhere in the XML document. ... dealing with real-life text documents was sidelined in the mad rush ... but this can be eliminated by generating the XSD ...
    (comp.text.xml)