Imported Upstream version 2.91.2
[platform/upstream/libxml++.git] / docs / reference / html / index.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
6 <meta name="generator" content="Doxygen 1.8.9.1"/>
7 <title>libxml++: libxml++ Reference Manual</title>
8 <link href="tabs.css" rel="stylesheet" type="text/css"/>
9 <script type="text/javascript" src="jquery.js"></script>
10 <script type="text/javascript" src="dynsections.js"></script>
11 <link href="doxygen.css" rel="stylesheet" type="text/css" />
12 <link href="doxygen-extra.css" rel="stylesheet" type="text/css"/>
13 </head>
14 <body>
15 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
16 <div id="titlearea">
17 <table cellspacing="0" cellpadding="0">
18  <tbody>
19  <tr style="height: 56px;">
20   <td style="padding-left: 0.5em;">
21    <div id="projectname">libxml++
22    &#160;<span id="projectnumber">2.91.2</span>
23    </div>
24   </td>
25  </tr>
26  </tbody>
27 </table>
28 </div>
29 <!-- end header part -->
30 <!-- Generated by Doxygen 1.8.9.1 -->
31   <div id="navrow1" class="tabs">
32     <ul class="tablist">
33       <li class="current"><a href="index.html"><span>Main&#160;Page</span></a></li>
34       <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
35       <li><a href="namespaces.html"><span>Namespaces</span></a></li>
36       <li><a href="annotated.html"><span>Classes</span></a></li>
37     </ul>
38   </div>
39 </div><!-- top -->
40 <div class="header">
41   <div class="headertitle">
42 <div class="title">libxml++ Reference Manual </div>  </div>
43 </div><!--header-->
44 <div class="contents">
45 <div class="textblock"><h1><a class="anchor" id="description"></a>
46 Description</h1>
47 <p>libxml++ is a C++ wrapper for the <a href="http://xmlsoft.org/">libxml2</a> XML parser and builder library. It presents a simple C++-like API that can achieve common tasks with less code.</p>
48 <p>See also the <a href="http://developer.gnome.org/libxml++-tutorial/stable/">libxml++ Tutorial</a> and the <a href="http://libxmlplusplus.sourceforge.net/">libxml++ website</a>.</p>
49 <h1><a class="anchor" id="features"></a>
50 Features</h1>
51 <ul>
52 <li><a class="el" href="classxmlpp_1_1DomParser.html" title="DOM XML parser. ">xmlpp::DomParser</a>: A DOM-style parser.</li>
53 <li><a class="el" href="classxmlpp_1_1SaxParser.html" title="SAX XML parser. ">xmlpp::SaxParser</a>: A SAX-style parser.</li>
54 <li><a class="el" href="classxmlpp_1_1TextReader.html" title="A TextReader-style XML parser. ">xmlpp::TextReader</a>: An XmlTextReader-style parser.</li>
55 <li>A hierarchy of <a class="el" href="classxmlpp_1_1Node.html" title="Represents XML Nodes. ">xmlpp::Node</a> classes.</li>
56 </ul>
57 <h1><a class="anchor" id="basics"></a>
58 Basic Usage</h1>
59 <p>Include the libxml++ header: </p><div class="fragment"><div class="line"><span class="preprocessor">#include &lt;libxml++/libxml++.h&gt;</span></div>
60 </div><!-- fragment --><p> (You may include individual headers, such as libxml++/document.h instead.)</p>
61 <p>If your source file is <code>program.cc</code>, you can compile it with: </p><div class="fragment"><div class="line">g++ program.cc -o program `pkg-config --cflags --libs libxml++-3.0`</div>
62 </div><!-- fragment --><p> If your version of g++ is not C++11-compliant be default, add the <code>-std=c++11</code> or <code>-std=c++0x</code> option.</p>
63 <p>Alternatively, if using autoconf, use the following in <code>configure.ac:</code> </p><div class="fragment"><div class="line">PKG_CHECK_MODULES([LIBXMLXX], [libxml++-3.0])</div>
64 </div><!-- fragment --><p> Then use the generated <code>LIBXMLXX_CFLAGS</code> and <code>LIBXMLXX_LIBS</code> variables in the project <code>Makefile.am</code> files. For example: </p><div class="fragment"><div class="line">program_CPPFLAGS = $(LIBXMLXX_CFLAGS)</div>
65 <div class="line">program_LDADD = $(LIBXMLXX_LIBS)</div>
66 </div><!-- fragment --> </div></div><!-- contents -->
67 <!-- start footer part -->
68 <hr class="footer"/><address class="footer"><small>
69 Generated on Fri Oct 30 2015 10:48:49 for libxml++ by &#160;<a href="http://www.doxygen.org/index.html">
70 <img class="footer" src="doxygen.png" alt="doxygen"/>
71 </a> 1.8.9.1
72 </small></address>
73 </body>
74 </html>