Commit | Line | Data |
---|---|---|
0e23f538 TJ |
1 | /* |
2 | The software in this package is distributed under the GNU General | |
3 | Public License version 2 (with a special exception described below). | |
4 | ||
5 | A copy of GNU General Public License (GPL) is included in this distribution, | |
6 | in the file COPYING.GPL. | |
7 | ||
8 | As a special exception, if other files instantiate templates or use macros | |
9 | or inline functions from this file, or you compile this file and link it | |
10 | with other works to produce a work based on this file, this file | |
11 | does not by itself cause the resulting work to be covered | |
12 | by the GNU General Public License. | |
13 | ||
14 | However the source code for this file must still be made available | |
15 | in accordance with section (3) of the GNU General Public License. | |
16 | ||
17 | This exception does not invalidate any other reasons why a work based | |
18 | on this file might be covered by the GNU General Public License. | |
19 | */ | |
ce6792dd TJ |
20 | /*************************************************************************** |
21 | xmlcommon.hxx - Common XML functions | |
22 | ------------------- | |
23 | begin : Tue Apr 27 2004 | |
24 | copyright : (C) 2004 by Intra2net AG | |
ce6792dd TJ |
25 | ***************************************************************************/ |
26 | ||
27 | #ifndef __XMLCOMMON | |
28 | #define __XMLCOMMON | |
29 | ||
30 | #include <libxml++/libxml++.h> | |
31 | #include <string> | |
32 | ||
33 | namespace I2n { | |
34 | ||
35 | void xml_validate_dtd(xmlpp::Node *root, const std::string &subsetname, const std::string &dtdname); | |
36 | ||
37 | std::string xml_get_child_content(xmlpp::Node *base, const std::string &elementname); | |
38 | std::string xml_get_text_content(xmlpp::Node *node, const std::string &elementname); | |
39 | ||
40 | } | |
41 | ||
42 | #endif |