|While i was working on a pocket pc project i realized that there was no simple way to serialize data. The next simplest way to store data in a structured manner was to use xml. I read up on how to use xml in c# and found that its quite a bothersome task to get what you want out of the xml file. So to make my life simpler (and maybe some of yours too) i created a nice XML wrapper library that makes reading and extracting XML data very simple.
Basically, my class will take an XML file, parse the data and create a simple yet structured 'node' class that contains the data in the xml file. Each node contains the following :
So as you can see, it is very easy to navigate through the XML data. I plan to revise this class in the future (unless someone else beats me to it). Right now the class only handles Tags, Declarations and Text Segments. In the future i would like to add support for any other XML types. I am still fairly new to XML so that is why i didn't include anything else. Also i wanted to keep this class as simple as possible.
One last note, i also added a nice function that will build a tree structure for you with the XML data parsed. This is just to get a visual representation of what the class actually does.
Hope you all enjoy this! =)