Hi all,

I'm using xerces C++ 3.0.1 for parsing a 1KB xml file. I'm using
DOMLSParser's parse() function in the following way:

DOMImplementation* impl =
DOMImplementationRegistry::getDOMImplementation(X("XML 1.0 Traversal 2.0"));
xercesc::DOMDocument* doc = NULL;
DOMLSParser* parser= 
((DOMImplementationLS*)impl)->createLSParser(DOMImplementationLS::MODE_SYNCHRONOUS,0);
DOMLSInput* input = ((DOMImplementationLS*)impl)->createLSInput();
LocalFileInputSource*  ipSource = new LocalFileInputSource(file1.xml); 
input->setByteStream(ipSource); 
doc = parser->parse(input);


I've some 200 xml files each of 1KB with similar DOM structure. And am doing
the above operation in a while loop for all the files one by one. For some
files, the parse() functions returns NULL while for others it passes. Can
anyone help on this issue...as to why parse() returns a NULL?

-- 
View this message in context: 
http://old.nabble.com/DOMLSParser-parse%28%29-returning-NULL-tp27495789p27495789.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.

Reply via email to