iDomParser.ParseFileL crash when the xml file does not exist
file .hCode:RXmlEngDocument document; TBuf<KFilePathSize> filepath(iDrive); _LIT(KFilename,"\\xedomexample\\input\\XML_parsing_001.xml"); filepath.Append(KFilename); TFileName srcFileName(filepath); document = iDomParser.ParseFileL(srcFileName); if(document.NotNull()) { QMessageBox msgBox; msgBox.setText("Existe"); msgBox.exec(); document.Close(); }
Code:... private: Ui::testXMLClass ui; // DOM Implementation, needed for initializing XmlEngine library once RXmlEngDOMImplementation iDomImpl; RXmlEngDOMParser iDomParser; };
constructor:
thank you in advance for your answersCode:testXML::testXML(QWidget *parent) : QDialog(parent) { iDomImpl.OpenL(); // Instantiate the parser TInt err = iDomParser.Open( iDomImpl ); if(KErrNone != err) User::Leave(err);




