Search
Quotes I love
The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
-John Carmack
-John Carmack
Reply to comment
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
| Attachment | Size |
|---|---|
| xml.tar_.gz | 7.32 KB |
