A
Amit Sharma
Hi
I have an XML file with DTD in the same file. The problem I am faced
with is that I need to modify the XML file programatically (Java XML
API) and write it back to the same file - but in the process of doing
so, I am losing the DTD part entirely.
Could someone please help me
1) Not lose the DTD
2) Programatically read the DTD from this XML file and manipulate it
if necessary.
The LexicalHandler interface does define startDTD() and endDTD()
events but I am not sure if it can be used to read the entire DTD.
Please help.
Thanks
Amit
I have an XML file with DTD in the same file. The problem I am faced
with is that I need to modify the XML file programatically (Java XML
API) and write it back to the same file - but in the process of doing
so, I am losing the DTD part entirely.
Could someone please help me
1) Not lose the DTD
2) Programatically read the DTD from this XML file and manipulate it
if necessary.
The LexicalHandler interface does define startDTD() and endDTD()
events but I am not sure if it can be used to read the entire DTD.
Please help.
Thanks
Amit