/usr/include/libxml++-2.6/libxml++/validators/schemavalidator.h is in libxml++2.6-dev 2.34.1-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 60 61 62 63 64 65 66 | /* schemavalidator.h
* libxml++ and this file are copyright (C) 2000 by Ari Johnson,
* (C) 2002-2004 by the libxml dev team and
* are covered by the GNU Lesser General Public License, which should be
* included with libxml++ as the file COPYING.
*/
#ifndef __LIBXMLPP_VALIDATOR_SCHEMAVALIDATOR_H
#define __LIBXMLPP_VALIDATOR_SCHEMAVALIDATOR_H
#include <libxml++/validators/validator.h>
#include <libxml++/schema.h>
#include <libxml++/document.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
extern "C" {
struct _xmlSchemaParserCtxt;
struct _xmlSchemaValidCtxt;
}
#endif //DOXYGEN_SHOULD_SKIP_THIS4
namespace xmlpp {
/** Schema Validator
*
* @newin{2,24}
*/
class SchemaValidator : public Validator
{
public:
SchemaValidator();
explicit SchemaValidator(const Glib::ustring& file);
explicit SchemaValidator(Document& document);
explicit SchemaValidator(Schema* schema);
virtual ~SchemaValidator();
virtual void parse_file(const Glib::ustring& filename);
virtual void parse_memory(const Glib::ustring& contents);
virtual void parse_document(Document& document);
virtual void set_schema(Schema* schema);
/** Test whether a document has been parsed.
*/
operator bool() const;
Schema* get_schema();
const Schema* get_schema() const;
bool validate(const Document* doc);
bool validate(const Glib::ustring& file);
protected:
virtual void initialize_valid();
void parse_context(_xmlSchemaParserCtxt* context);
virtual void release_underlying();
Schema* schema_;
bool embbeded_shema_;
_xmlSchemaValidCtxt* ctxt_;
};
} // namespace xmlpp
#endif //__LIBXMLPP_VALIDATOR_SCHEMAVALIDATOR_H
|