Search
Quotes I love
We need not fear the expression of ideas; we do need to fear their suppression.
-Harry Truman
-Harry Truman
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:
<base>
<some_tag>
<some_other_tag attr="chi Library is easy!">
</some_other_tag>
</some_tag>
</base>
Then the result would be:
Chi Library is easy!
Enjoy <3
