how to ignore DOCTYPE when parsing xml java?
807588Jan 21 2009 — edited Jan 21 2009Hello
i am trying to parse some sml files that have:
<!DOCTYPE ModuleRoot SYSTEM "C:\xxx\xmlapp.dtd">
i don;t have the dtd file
how can i ignore it by changing my code and not changing the xml file.
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
this.doc = documentBuilder.parse(xmlFileName);
i got exception in this.doc = documentBuilder.parse(xmlFileName);
(The system cannot find the path specified)
Thanks in advance.