J
johnlittlepeap
how do all,
I have an xml file, for example
<content>
<section/>
<section/>
<on/>
<off/>
</content>
Obviously just an example. I would like the dtd to say, the xml file
must have one or more section, 0-1 on tags, 0-1 off tags and that the
on and off tags can be in any order. Try as I may I havn't been able
to uncover the syntax to define this.
I have at the moment
<!ELEMENT content (section+,on+,off+>
but the commas say they must be in that particular order, my xml files
aren't like this. I want to be pretty much as it is here, except that
they don't have to be in order. I don't want to just say ANY. Any help
would be appreciated
Troot
I have an xml file, for example
<content>
<section/>
<section/>
<on/>
<off/>
</content>
Obviously just an example. I would like the dtd to say, the xml file
must have one or more section, 0-1 on tags, 0-1 off tags and that the
on and off tags can be in any order. Try as I may I havn't been able
to uncover the syntax to define this.
I have at the moment
<!ELEMENT content (section+,on+,off+>
but the commas say they must be in that particular order, my xml files
aren't like this. I want to be pretty much as it is here, except that
they don't have to be in order. I don't want to just say ANY. Any help
would be appreciated
Troot