Creating a Tree Structure
-
Hi All, I want to build a structure of userdefined elements,which will be having child & subchild elemetnts as well(Like a Tree Structure). Using STL or so... Is there any build-In facility in c++,by which I could create a tree structure like this & query for elements as well, within this structure. If not any suggestions how to proceed..... Thanks...
-
Hi All, I want to build a structure of userdefined elements,which will be having child & subchild elemetnts as well(Like a Tree Structure). Using STL or so... Is there any build-In facility in c++,by which I could create a tree structure like this & query for elements as well, within this structure. If not any suggestions how to proceed..... Thanks...
Try using an XMLDOMDoc. You can use XPath syntax to navigate the tree and find nodes. XML is a self-defining tree structure which includes it's own navigation functions. Sounds like a perfect answer to you problem. Check out the following links. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmobjxmldomdocument.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmrefxpathsyntax.asp Some people see things that are and ask, Why? Some people dream of things that never were and ask, Why not? Some people have to go to work and don't have time for all that ... Author: George Carlin
-
Try using an XMLDOMDoc. You can use XPath syntax to navigate the tree and find nodes. XML is a self-defining tree structure which includes it's own navigation functions. Sounds like a perfect answer to you problem. Check out the following links. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmobjxmldomdocument.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmrefxpathsyntax.asp Some people see things that are and ask, Why? Some people dream of things that never were and ask, Why not? Some people have to go to work and don't have time for all that ... Author: George Carlin