Represents an XML Schema.  
 More...
#include <libxml++/schema.h>
◆ Schema() [1/2]
  
  | 
        
          | LIBXMLPP_API xmlpp::Schema::Schema | ( | _xmlSchema * | schema | ) |  |  | explicit | 
 
 
◆ Schema() [2/2]
  
  | 
        
          | LIBXMLPP_API xmlpp::Schema::Schema | ( | Document* | document = nullptr, |  
          |  |  | bool | embed = false |  
          |  | ) |  |  |  | explicit | 
 
Create a schema from an XML document. 
- Parameters
- 
  
    | document | XMLSchema document, nullptrto create an empty schema document. |  | embed | If true, the document will be deleted when the schema is deleted or another document is set. |  
 
- Exceptions
- 
  
  
- Deprecated:
- Use XsdSchema instead. 
 
 
◆ ~Schema()
      
        
          | xmlpp::Schema::~Schema | ( |  | ) |  | 
      
 
 
◆ cobj() [1/2]
      
        
          | LIBXMLPP_API _xmlSchema* xmlpp::Schema::cobj | ( |  | ) |  | 
      
 
 
◆ cobj() [2/2]
      
        
          | LIBXMLPP_API const _xmlSchema* xmlpp::Schema::cobj | ( |  | ) | const | 
      
 
 
◆ get_document() [1/2]
      
        
          | LIBXMLPP_API Document* xmlpp::Schema::get_document | ( |  | ) |  | 
      
 
Get the schema document. 
- Returns
- A pointer to the schema document, or nullptrif none exists.
- Deprecated:
- There is no replacement. 
 
 
◆ get_document() [2/2]
      
        
          | LIBXMLPP_API const Document* xmlpp::Schema::get_document | ( |  | ) | const | 
      
 
Get the schema document. 
- Returns
- A pointer to the schema document, or nullptrif none exists.
- Deprecated:
- There is no replacement. 
 
 
◆ get_name()
◆ get_target_namespace()
      
        
          | LIBXMLPP_API Glib::ustring xmlpp::Schema::get_target_namespace | ( |  | ) | const | 
      
 
 
◆ get_version()
◆ release_underlying()
  
  | 
        
          | virtual LIBXMLPP_API void xmlpp::Schema::release_underlying | ( |  | ) |  |  | protectedvirtual | 
 
 
◆ set_document()
  
  | 
        
          | virtual LIBXMLPP_API void xmlpp::Schema::set_document | ( | Document* | document = nullptr, |  
          |  |  | bool | embed = false |  
          |  | ) |  |  |  | virtual | 
 
Set a new document to the schema. 
If the old schema document is owned by the schema (embed == true), the old schema document and all its nodes are deleted. 
- Parameters
- 
  
    | document | XMLSchema document, nullptrto create an empty schema document. |  | embed | If true, the document will be deleted when the schema is deleted or another document is set. |  
 
- Exceptions
- 
  
  
- Deprecated:
- Use XsdSchema::parse_document() instead.