Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTD for Recursive XML

Status
Not open for further replies.

ygelman

IS-IT--Management
Dec 16, 2002
60
US
Hello forum.
I'm starting my first project that should use XML.
And here I have question about DTD.
I have to create recursive tree that simulates directory tree:
**************************************************
<?XML version=&quot;1.0&quot;?>
<TREE_MENU_NESTED>
<TREE ICON=&quot;File&quot; ACTION=&quot;URL&quot; LINK=&quot; TARGET=&quot;_blank&quot;>Home</TREE>
<TREE ICON_OPEN=&quot;Folders&quot; ICON_CLOSED=&quot;Folders&quot; OPENED=&quot;TRUE&quot;>Calendar
<TREE ICON=&quot;File&quot; ACTION=&quot;URL&quot; LINK=&quot; TARGET=&quot;_blank&quot;>Business</TREE>
<TREE ICON=&quot;File&quot; ACTION=&quot;URL&quot; LINK=&quot; TARGET=&quot;_blank&quot;>Social</TREE>
</TREE>
<TREE ICON_OPEN=&quot;Folders&quot; ICON_CLOSED=&quot;Folders&quot; OPENED=&quot;TRUE&quot;>Departments
<TREE ICON_OPEN=&quot;Folders&quot; ICON_CLOSED=&quot;Folders&quot; OPENED=&quot;TRUE&quot;>IT
<TREE ICON_OPEN=&quot;Folders&quot; ICON_CLOSED=&quot;Folders&quot; OPENED=&quot;TRUE&quot; ACTION=&quot;URL&quot; LINK=&quot; <TREE ICON=&quot;File&quot; ACTION=&quot;URL&quot; LINK=&quot; TARGET=&quot;_blank&quot;>Reporting</TREE>
</TREE>
<TREE ICON=&quot;File&quot; ACTION=&quot;URL&quot; LINK=&quot; TARGET=&quot;_blank&quot;>Service Request</TREE>
</TREE>
</TREE>
</TREE_MENU_NESTED>

***************************************************

How should I write DTD for it. As I uderstood from the book I have on XML I can't create the recursive elements in DTD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top