2. In my application I want to be able to open an instance of
the document's DTD independently so that I can query it.
For me queries like the following would be pertinent :
- What all elements are defined by the DTD?
- Can an element 'x' be inserted as the child of 'y'?
- What attributes are allowed by an element 'x'?
- etc ...
Is there a way to do this using any SAX parser? If not
how do I go about achieving this?
thanks,
- Ajay Gangwar
majayg@iitk.ac.in