I need to read in a DTD from a file that is provided by a third
party. From the DOM created from this DTD I need to create a GUI which
will allow me to enter information into text boxes to insert into the
XML. For Example:
Start with:
Expand|Select|Wrap|Line Numbers
- (DTD)
- <!ELEMENT cdlib (cd+)>
- <!ELEMENT cd (artist+, title+, format?, description?)>
- <!ELEMENT artist (#PCDATA)>
- <!ELEMENT title (#PCDATA)>
- <!ELEMENT format (#PCDATA)>
- <!ELEMENT description (#PCDATA)>
(GUI)
------------------------------------------
------------------------------------------
cdlib
------------------------------------------
cd + -
------------------------------------------
________________________
Artist |AnArtist________________| + -
________________________
Title |ATitle__________________| + -
________________________
Format |AFormat_________________| -
________________________
Description |ADescription____________| -
------------------------------------------
------------------------------------------
Next Step is:
Expand|Select|Wrap|Line Numbers
- (XML)
- <cdlib>
- <cd>
- <artist>AnArtist</artist>
- <title>ATitle</title>
- <format>AFormat></format>
- <description>ADescription</description>
- </cd>
- </cdlib>
As you see, the idea is to have an application that is fully dynamic. I have
found some XML parsing components, but they don't seem to allow you to
parse a DTD to create anything but a DOM Document Type. From here I am
unsure what the next step should be. I also here that the DTD section
of the DOM is likely to change greatly in level 3. Is the project just
a pipe dream :)? Any help would be appreciated.
Thanks,
hiren mistry