I am using DOM parser to parse an XML in Java. Now, I want to validate this XML using an external DTD(by specifying the DTD file name in java not specifying in XML file) before parsing the XML.
Please guide me abt how to do that validation of XML that it conforms to the DTD given in java.
Please take some time to pick the correct forum for you question. This forum is for servlet questions. Moving to our XML and Related Technologies forum.