How can I get the DOCTYPE from XML file?
<!DOCTYPE CDBOOK SYSTEM "Test2.dtd"> the result will be "Test2.dtd"
I tried to use following code get it, but the value was null...
Node dtd = (Node)document().getDoctype();
String value = dtd.getNodeValue();
 
thank for help!
 
 

Reply via email to