You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by 林 子芯 <mi...@hotmail.com> on 2002/04/30 12:27:33 UTC
problem during compiling in VC++6 SP5
Hi, can somebody help me out over this part, i have written a small code
using xerces c++ 1.6, but the application keep on crashing, can someone
point out what the problem with it, thanks
here are the code
int main(int argc, char* argv[])
{
XMLPlatformUtils::Initialize();
DOMParser theParser;
//theParser.setToCreateXMLDeclTypeNode(false);
//theParser.setDoValidation(true);
//theParser.setDoNamespaces(true);
//Parse and retrieve a tree structure of this xml, stores in theDOM object
theParser.parse("tempDig.xml");
const DOM_Document theDOM = theParser.getDocument();
//Get a list of elements that lies within the List tag
DOM_NodeList Node_list = theDOM.getElementsByTagName("List");
DOM_Element elm = (DOM_Element&)Node_list.item(0);
DOM_NodeList deviation = elm.getElementsByTagName("deviation");
// DOM_NodeList fault = elm.getElementsByTagName("fault");
// DOM_NodeList consequence = elm.getElementsByTagName("consequence");
XMLPlatformUtils::Terminate();
return 0;
}
Mank thanks
Regards
Kit
_________________________________________________________________
在 http://explorer.msn.com.hk/intl.asp 免費下載 MSN Explorer
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org