4 This is a very small library which provides a slightly tidier
5 C++ API than libxml++ for parsing HTML.
9 cxml::Document doc ("RootNodeName");
12 /* Get the contents of child node <Fred>, throwing an
13 * exception if it does not exist
15 string s = doc.string_child ("Fred");
17 /* Get the contents of child node <Jim>, or 42 if it
20 int i = doc.optional_number_child<int> ("Jim").get_value_or (42);
22 /* Get the contents of <Roger> within <Sheila>,
23 * throwing an exception if either node
26 double d = doc.node_child("Sheila").number_child<double> ("Roger");
28 For full details, see src/cxml.h
36 Bug reports and queries to Carl Hetherington <cth@carlh.net>