Bump version
[libcxml.git] / README
1 libcxml
2 -------
3
4 This is a very small library which provides a slightly tidier C++ API than libxml++
5 for parsing HTML.
6
7 For example:
8
9 cxml::Document doc ("RootNodeName");
10 doc.read ("foo.xml");
11
12 /* Get the contents of child node <Fred>, throwing an exception if it does not exist */
13 string s = doc.string_child ("Fred");
14
15 /* Get the contents of child node <Jim>, or 42 if it does not exist */
16 int i = doc.optional_number_child<int> ("Jim").get_value_or (42);
17
18 /* Get the contents of <Roger> within <Sheila>, throwing an exception if either node
19    is not present.
20 */
21 double d = doc.node_child("Sheila").number_child<double> ("Roger");
22
23 For full details, see src/cxml.h
24
25 To build:
26 ./waf configure
27 ./waf build
28 sudo ./waf install
29
30 Bug reports and queries to Carl Hetherington <cth@carlh.net>
31
32
33