Click to See Complete Forum and Search --> : Help on MSXML XML pattern and xml path


binayak
September 15th, 2003, 12:45 AM
Hi,

I'm trying to use MSXML3 to read a XML document and populate a CTreeCtrl in MFC. But to populate the tree I have to go through the xml document as the tree structure would be different from the xml hierarchy. Someone asked me to use xml patterns for this. Can anybody supply me with some tutorial/sample code for xml pattern support of MSXML? also, I was wondering if I can use xml path for this? I don't have any idea about xml pattern or, xml path. so I'm looking for as much help as I can get on them. Please supply any code in C++ only

Thanks,

khp
September 15th, 2003, 08:22 AM
I'am not quite sure I understand what you mean by xml patterns, I suppose you could mean xslt, which is the stylesheet mechanism usually used to map one xml structure to another xml structure. But I don't quite see the point of using xslt, if you are only going to use the result to build some treecontrol. In such a case it should be just as easy to use DOM functions on nodes in the original xml file to recursivly find the children of each node in the treecontrol.