Using javax.xml.parsers.DocumentBuilder class, an application programmer can obtain a org.w3c.dom.Document from XML.
This public org.w3c.dom.Document parse (InputStream is) has also other overloaded implementations for parsing a file; using the file name or the file objec(java.io.File)
Then you can retrieve the org.w3c.dom.Element by
org.w3c.dom.Element e = doc.getDocumentElement();
This public org.w3c.dom.Document parse (InputStream is) has also other overloaded implementations for parsing a file; using the file name or the file objec(java.io.File)
Then you can retrieve the org.w3c.dom.Element by
org.w3c.dom.Element e = doc.getDocumentElement();
2 comments:
Thanks!
That was a quickfix to hellishly mind numbing problem.
Thanks muchly. I would note that StringBufferInputStream is possibly deprecated?
Post a Comment