18#ifndef INCLUDED_RELAXNG
19#define INCLUDED_RELAXNG
41 bool Validate(
const std::string& filename,
const std::string& document)
const;
43 bool ValidateEncoded(
const std::string& filename,
const std::string& document)
const;
void ClearSchemaCache()
There should be no references to validators or schemas outside of the cache anymore when calling this...
Definition: RelaxNG.cpp:45
xmlRelaxNG * xmlRelaxNGPtr
Definition: RelaxNG.h:25
xmlDoc * xmlDocPtr
Definition: RelaxNG.h:27
struct _xmlRelaxNG xmlRelaxNG
Definition: RelaxNG.h:24
xmlDoc * xmlDocPtr
Definition: XMBStorage.h:26
struct _xmlDoc xmlDoc
Definition: XMBStorage.h:25
MD5 hashing algorithm.
Definition: MD5.h:28
bool LoadGrammar(const std::string &grammar)
Definition: RelaxNG.cpp:95
bool LoadGrammarFile(const PIVFS &vfs, const VfsPath &grammarPath)
Definition: RelaxNG.cpp:124
bool ValidateEncoded(const std::string &filename, const std::string &document) const
Definition: RelaxNG.cpp:140
RelaxNGValidator()
Definition: RelaxNG.cpp:86
xmlRelaxNGPtr m_Schema
Definition: RelaxNG.h:51
~RelaxNGValidator()
Definition: RelaxNG.cpp:91
MD5 GetGrammarHash() const
Definition: RelaxNG.h:39
MD5 m_Hash
Definition: RelaxNG.h:50
bool CanValidate() const
Definition: RelaxNG.cpp:185
bool Validate(const std::string &filename, const std::string &document) const
Definition: RelaxNG.cpp:133
Definition: vfs_util.cpp:39
std::shared_ptr< IVFS > PIVFS
Definition: vfs.h:220