[XML-SIG] DTD specification

Lars Marius Garshol larsga@garshol.priv.no
09 Oct 2001 22:43:41 +0200


* Gangayi Mahesh
| 
| I have some problem in specifying DTD for below.

XML-L or comp.text.xml are probably better fora for this question.

| """""""""
| <Type aaa="some value which may vary" bbb="some value
| which may vary">
| 
| 	<ChildOne>exit</ChildOne>
| 
| 	<ChildTwo>exit</ChildTwo>
| 
| 	<ChildThree>exit</ChildThree>
| 
| </Type>
| """""""""

It is not very easy to see what you intend by this, but perhaps this
can serve as a start:

  <!ELEMENT Type (ChildOne, ChildTwo, ChildThree)>
  <!ATTLIST Type aaa CDATA #REQUIRED
                 bbb CDATA #REQUIRED>

  <!ELEMENT ChildOne (#PCDATA)>
  <!ELEMENT ChildTwo (#PCDATA)>
  <!ELEMENT ChildThree (#PCDATA)>

--Lars M.