I did what you sugguested, and the size of the rootNodeList is not changing. So any other sugguestions? BTW- Thanks for all the help given so far. Robert
oaks rbt
Posts
-
[Help] MFC ypelib wrappers for MSXML5 -
[Help] MFC ypelib wrappers for MSXML5To answer you question, and give move clarification. I am not removing any nodes. I am just accessing them to pull the information out of the nodes. I have notice that in some case the nodelist size if different sizes, cause sometimes there is a TEXT_Element in the list. I just do not understand this nomial yet. But this is for different files. Robert -- modified at 14:10 Thursday 10th August, 2006
-
[Help] MFC ypelib wrappers for MSXML5All, I am currently using the Typelib wrappers for MSXML that was generated from the MFC Typelib Class wizard. I think I am using the objects incorrectly, and this is generating unhandled exception errors. I use wizard MFC Class from Typelib to generate wrapper classes for the MSXML5 control (CXMLDOMDocument, CXMLDOMElement, CXMLDOMNode, and CXMLNodeList). The exception occurs when I pass a CXMLDOMNode reference to a function that I want it to work on by stepping down farther in the node tree. For example: If(m_XMLDOMroot.hasChildNodes()) { int rootchildcount = RootNodeList.get_length(); for(int i = 0; i < rootchildcount; ++i) { CXMLDOMElement childnode = RootNodeList.get_item(i); <- This code sometimes user breaks SetChildNode(childnode); } } PS - I did not know it this group would also apply to this message. Robert
-
[Help] MFC ypelib wrappers for MSXML5I am currently using the Typelib wrappers for MSXML that was generated from the MFC Typelib Class wizard. I think I am using the objects incorrectly, and this is generating unhandled exception errors. I use wizard MFC Class from Typelib to generate wrapper classes for the MSXML5 control (CXMLDOMDocument, CXMLDOMElement, CXMLDOMNode, and CXMLNodeList). The exception occurs when I pass a CXMLDOMNode reference to a function that I want it to work on by stepping down farther in the node tree. For example: If(m_XMLDOMroot.hasChildNodes()) { int rootchildcount = RootNodeList.get_length(); for(int i = 0; i < rootchildcount; ++i) { CXMLDOMElement childnode = RootNodeList.get_item(i); <- This code sometimes user breaks SetChildNode(childnode); } } Robert