The Real cha0s
Order emerges out of cha0s :)
Syndicate content

C++

C++ articles.

chi XML library, stronger than SimpleXML, much easier than libxml++

I developed this XML library because SimpleXML isn't powerful enough, but libxml++ is like a nuclear warhead on crack. So, chi XML library strives to find a happy medium.

The library is organized under the namespace chi. You can view the documentation over at the XML docs page.

You can use it like this:

XML xml("/my/file/name.xml");
cout << xml.child("some_tag").child("some_other_tag").attribute("attr");

If this XML is given:

&lt;base>
  &lt;some_tag>
    &lt;some_other_tag attr="chi Library is easy!">
    &lt;/some_other_tag>
  &lt;/some_tag>
&lt;/base>

Then the result would be:

Chi Library is easy!

Enjoy <3