Wolvorine
July 14th, 2005, 06:14 AM
hi!
I am trying to to load XMl file in the memory and then after using XPath i would like to do certain things.
1)Get all the hirarchi information of XML nodes
2) Extract a specific Child by using Xpath query.
3) Delete that specific object from the hirarchi of XML node but parent should be check if its correct level child or not.
4) how can i get Path string of hirarchi(path) from a specific child.
here is code
IXMLDOMNodeListPtr Lists1 = GetNodeChildren(str_Xpath,XMLFILE1);
//My own created function that returns the lists result from Xpath selection query
//Now I got my specific Xml element's object which i have to delete from the real XML hirarchi rootelement
rootelement->removeChild(Lists1);
but it doesnt work , i even tried rootelement->removeChild(Lists1->GetItem(0); but it just gives runtime errors.
and how to get any child's full path???
Thanks in advance
I am trying to to load XMl file in the memory and then after using XPath i would like to do certain things.
1)Get all the hirarchi information of XML nodes
2) Extract a specific Child by using Xpath query.
3) Delete that specific object from the hirarchi of XML node but parent should be check if its correct level child or not.
4) how can i get Path string of hirarchi(path) from a specific child.
here is code
IXMLDOMNodeListPtr Lists1 = GetNodeChildren(str_Xpath,XMLFILE1);
//My own created function that returns the lists result from Xpath selection query
//Now I got my specific Xml element's object which i have to delete from the real XML hirarchi rootelement
rootelement->removeChild(Lists1);
but it doesnt work , i even tried rootelement->removeChild(Lists1->GetItem(0); but it just gives runtime errors.
and how to get any child's full path???
Thanks in advance