30 #ifndef _RL_XML_SCHEMA_H_
31 #define _RL_XML_SCHEMA_H_
34 #include <boost/shared_array.hpp>
35 #include <boost/shared_ptr.hpp>
36 #include <libxml/xmlschemas.h>
48 parser(xmlSchemaNewParserCtxt(url.c_str()), xmlSchemaFreeParserCtxt),
60 return 0 == xmlSchemaValidateDoc(this->
valid.get(), doc()) ?
true :
false;
66 ::boost::shared_ptr< xmlSchemaParserCtxt >
parser;
68 ::boost::shared_ptr< xmlSchema >
schema;
70 ::boost::shared_ptr< xmlSchemaValidCtxt >
valid;
75 #endif // _RL_XML_SCHEMA_H_