ui-gxmlcpp 1.4.6
SchemaTree.hpp
Go to the documentation of this file.
1
10#ifndef UI_GXML_SCHEMATREE_HPP
11#define UI_GXML_SCHEMATREE_HPP
12
13// STDC++
14#include <string>
15
16// C++ Libraries
18
19// C libraries
20#include <libxml/xmlschemas.h>
21
22namespace UI {
23namespace GXML {
24
27{
28private:
29 void init();
30
31public:
34 SchemaTree(char const * xml, int len=-1, std::string const & base=DefaultDocbase_, int const options=0);
35 SchemaTree(std::string const & xml, std::string const & base=DefaultDocbase_, int const options=0);
36 SchemaTree(std::istream & xml, std::string const & base=DefaultDocbase_, int const options=0);
37 SchemaTree(FileConstructor const dummy, std::string const & file, int const options=0);
41
42private:
43 virtual int libxml2Validate(Tree const & tree) const;
44
45 xmlSchemaParserCtxt * parserCtxt_;
46 xmlSchema * schema_;
47};
48
49}}
50#endif
XML Schema Tree.
Definition SchemaTree.hpp:27
XML tree.
Definition Tree.hpp:31
FileConstructor
Helper enum for constructor from file name.
Definition Tree.hpp:103
static std::string const DefaultDocbase_
Default document base. This is used for from-memory parsing if not specified otherwise.
Definition Tree.hpp:74
Common abstract base class for validator trees (XML Schema and RelaxNG).
Definition ValidatorTree.hpp:24
Namespace for all Schlund+Partner Code.
Definition Buffer.cpp:30