Hi there
i have try the approach used what Alberto suggest, however, exception error
still occurs, in fact the error pops up when i tried and used the
elm.getElementsByTagName("deviation") method (see the code below)
can someone help me out
Many thanks
Regards
Kit
>
>
>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;
>}
_________________________________________________________________
�ϥ� MSN Messenger�A�P�B�ͦb�u�W��ѡGhttp://messenger.msn.com.hk
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]