Base class for schemas, used for validation of XML files.  
 More...
#include <libxml++/schemabase.h>
Base class for schemas, used for validation of XML files. 
- Since libxml++ 2.38:
      
        
          | xmlpp::SchemaBase::SchemaBase | ( |  | ) |  | 
      
 
 
  
  | 
        
          | xmlpp::SchemaBase::~SchemaBase | ( |  | ) |  |  | override | 
 
 
  
  | 
        
          | virtual void xmlpp::SchemaBase::parse_document | ( | const Document* | document | ) |  |  | pure virtual | 
 
Parse a schema definition from a document. 
If another schema has been parsed before, that schema is replaced by the new one. 
- Parameters
- 
  
    | document | A preparsed document tree, containing the schema definition. |  
 
- Exceptions
- 
  
  
Implemented in xmlpp::RelaxNGSchema, and xmlpp::XsdSchema.
 
 
  
  | 
        
          | virtual void xmlpp::SchemaBase::parse_file | ( | const Glib::ustring & | filename | ) |  |  | pure virtual | 
 
Parse a schema definition file. 
If another schema has been parsed before, that schema is replaced by the new one. 
- Parameters
- 
  
    | filename | The URL of the schema. |  
 
- Exceptions
- 
  
  
Implemented in xmlpp::RelaxNGSchema, and xmlpp::XsdSchema.
 
 
  
  | 
        
          | virtual void xmlpp::SchemaBase::parse_memory | ( | const Glib::ustring & | contents | ) |  |  | pure virtual | 
 
Parse a schema definition from a string. 
If another schema has been parsed before, that schema is replaced by the new one. 
- Parameters
- 
  
    | contents | The schema definition as a string. |  
 
- Exceptions
- 
  
  
Implemented in xmlpp::RelaxNGSchema, and xmlpp::XsdSchema.