Represents an XML Schema.  More...
#include <libxml++/schema.h>
| 
Public Member Functions | 
|  | Schema (_xmlSchema* schema) | 
|  | Create a schema from the underlying libxml schema element. 
 | 
|  | Schema (Document* document=0, bool embed=false) | 
|  | Create a schema from an XML document. 
 | 
|  | ~Schema () | 
| virtual void | set_document (Document* document=0, bool embed=false) | 
|  | Set a new document to the schema. 
 | 
| Glib::ustring | get_name () const | 
| Glib::ustring | get_target_namespace () const | 
| Glib::ustring | get_version () const | 
| Document* | get_document () | 
|  | Get the schema document. 
 | 
| const Document* | get_document () const | 
|  | Get the schema document. 
 | 
| _xmlSchema* | cobj () | 
|  | Access the underlying libxml implementation. 
 | 
| const _xmlSchema* | cobj () const | 
|  | Access the underlying libxml implementation. 
 | 
| 
Additional Inherited Members | 
Detailed Description
Constructor & Destructor Documentation
  
  | 
        
          | xmlpp::Schema::Schema | ( | _xmlSchema * | schema | ) |  |  | explicit | 
 
Create a schema from the underlying libxml schema element. 
 
 
  
  | 
        
          | xmlpp::Schema::Schema | ( | Document* | document = 0, |  
          |  |  | bool | embed = false |  
          |  | ) |  |  |  | explicit | 
 
Create a schema from an XML document. 
- Parameters
- 
  
    | document | XMLSchema document, 0 to create an empty schema document. |  | embed | If true, the document will be deleted when the schema is deleted or another document is set. |  
 
- Exceptions
- 
  
  
 
 
      
        
          | xmlpp::Schema::~Schema | ( |  | ) |  | 
      
 
 
Member Function Documentation
      
        
          | _xmlSchema* xmlpp::Schema::cobj | ( |  | ) |  | 
      
 
Access the underlying libxml implementation. 
 
 
      
        
          | const _xmlSchema* xmlpp::Schema::cobj | ( |  | ) | const | 
      
 
Access the underlying libxml implementation. 
 
 
      
        
          | Document* xmlpp::Schema::get_document | ( |  | ) |  | 
      
 
Get the schema document. 
- Returns
- A pointer to the schema document, or 0if none exists.
 
 
      
        
          | const Document* xmlpp::Schema::get_document | ( |  | ) | const | 
      
 
Get the schema document. 
- Returns
- A pointer to the schema document, or 0if none exists.
 
 
      
        
          | Glib::ustring xmlpp::Schema::get_name | ( |  | ) | const | 
      
 
 
      
        
          | Glib::ustring xmlpp::Schema::get_target_namespace | ( |  | ) | const | 
      
 
 
      
        
          | Glib::ustring xmlpp::Schema::get_version | ( |  | ) | const | 
      
 
 
  
  | 
        
          | virtual void xmlpp::Schema::release_underlying | ( |  | ) |  |  | protectedvirtual | 
 
 
  
  | 
        
          | virtual void xmlpp::Schema::set_document | ( | Document* | document = 0, |  
          |  |  | 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, 0 to create an empty schema document. |  | embed | If true, the document will be deleted when the schema is deleted or another document is set. |  
 
- Exceptions
- 
  
  
 
 
The documentation for this class was generated from the following file: