B
Bryan Ax
I'm struggling with whether or not it is possible to represent the
following construct in a dtd.
I have an element X that I want to contain 3 types of child elements.
Child Element A should have a 0 or 1 constraint, Child element B should
have a 0-n constraint. I also want X to be able to contain text,
resulting in xml that the following
<X>
<A/>
<B/>
<B/>
child text of element X also possible
</X?>
I've got the following, but can't seem to figure out a way to also
allow for a text child node. Any help appreciated
<!ELEMENT X (A?, B*)>
Bryan
following construct in a dtd.
I have an element X that I want to contain 3 types of child elements.
Child Element A should have a 0 or 1 constraint, Child element B should
have a 0-n constraint. I also want X to be able to contain text,
resulting in xml that the following
<X>
<A/>
<B/>
<B/>
child text of element X also possible
</X?>
I've got the following, but can't seem to figure out a way to also
allow for a text child node. Any help appreciated
<!ELEMENT X (A?, B*)>
Bryan