as*****@gmail.com wrote:
I need a little help here as Im new to xml .The problem is in my web
App I get response as xml and I try to parse it using
DocumentBuilderFactory. All seems to work fine I dont get any errors
but the Document generated shows up
nothing..document.getDocumentType() returns null...
Does the XML you receive have a DOCTYPE node? It is not unusual that
there is no DTD associated with an XML document. It should have a root
element however so
document.getDocumentElement()
should not be null.
I am afraid we can only guess what goes wrong, you need to provide the
relevant code you have written to use DocumentBuilderFactory and show us
how the XML looks.
--
Martin Honnen
http://JavaScript.FAQTs.com/