Menu

[r16]: / src / wraplibxml.h  Maximize  Restore  History

Download this file

60 lines (56 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef WRAPLIBXML_H
#define WRAPLIBXML_H
#include <string>
#include <utility>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xmlschemas.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include <libxml/catalog.h>
#include <libxml/xmlreader.h>
#include <libxml/xmlmemory.h>
#include <libxslt/xslt.h>
#include <libxslt/xsltInternals.h>
#include <libxslt/transform.h>
#include <libxslt/xsltutils.h>
class WrapLibxml
{
public:
WrapLibxml(
bool netAccessParameter = false,
const std::string& catalogPathParameter = "catalog");
virtual ~WrapLibxml();
bool validate(const std::string& fileName);
bool validateRelaxNG(
const std::string& schemaFileName,
const std::string& fileName);
bool validateW3CSchema(
const std::string& schemaFileName,
const std::string& fileName);
bool parse(
const std::string& fileName,
bool indent = false,
bool resolveEntities = false);
bool bufferWellFormed(const std::string& buffer);
bool xpath(const std::string& path, const std::string& fileName);
bool xslt(const std::string& styleFileName, const std::string& fileName);
std::string getLastError();
std::pair<int, int> getErrorPosition();
std::string getOutput();
int saveEncoding(
const std::string& buffer,
const std::string& fileName,
const std::string& encoding);
int saveEncodingFromFile(
const std::string& fileNameSource,
const std::string& fileNameDestination,
const std::string& encoding);
std::string lookupPublicId(const std::string& id);
private:
bool netAccess;
std::string catalogPath, output;
int errorLine;
void loadCatalog();
};
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.