Namespace for TerraLib Xerces module.  
More...
 | 
| bool  | Equals (const XMLCh *const s1, const char *const s2) | 
|   | It return true if the two strings are identical, otherwise, it returns false.  More...
  | 
|   | 
| char *  | GetAttributeVal (const xercesc::Attributes &attrs, const XMLCh *const attName) | 
|   | It returns the given attribute value.  More...
  | 
|   | 
| bool  | NotEquals (const XMLCh *const s1, const char *const s2) | 
|   | It return true if the two strings are different, otherwise, it returns false.  More...
  | 
|   | 
| TEXMLEXPORT xercesc::DOMDocument *  | readXML (const std::string &xmlFile, const bool doNamespace=false, const bool doSchema=false, const bool valid=false) | 
|   | It reads the XML file using the DOM API.  More...
  | 
|   | 
| int  | ToInt (const XMLCh *value) | 
|   | It converts the XML string to an integer value.  More...
  | 
|   | 
| std::string  | ToString (const XMLCh *const value) | 
|   | It converts the XML string to a standard C++ string.  More...
  | 
|   | 
Namespace for TerraLib Xerces module. 
This is the namespace for the TerraLib XML support built on top of Xerces-C++. 
 
  
  
      
        
          | bool te::xerces::Equals  | 
          ( | 
          const XMLCh *const  | 
          s1,  | 
         
        
           | 
           | 
          const char *const  | 
          s2  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
It return true if the two strings are identical, otherwise, it returns false. 
- Parameters
 - 
  
    | s1 | The first string to compare.  | 
    | s2 | The second string to compare. | 
  
   
- Returns
 - True if the two strings are identical, otherwise, it returns false.
 
- Note
 - This function is intend to be inlined and just convert the XMLCh string to a char* and then compare the two strings. 
 
Definition at line 55 of file Utils.h.
 
 
  
  
      
        
          | char* te::xerces::GetAttributeVal  | 
          ( | 
          const xercesc::Attributes &  | 
          attrs,  | 
         
        
           | 
           | 
          const XMLCh *const  | 
          attName  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
It returns the given attribute value. 
- Parameters
 - 
  
    | attrs | The attributes attached to an element, if any.  | 
    | attName | The name of the attribute we are looking for its value. | 
  
   
- Returns
 - The attribute value or NULL if it is not found.
 
- Note
 - The caller will take the ownership of the returned pointer. Use xercesc::XMLString::release(&val) in order to release the returned value. 
 
Definition at line 143 of file Utils.h.
References readXML(), and TEXMLEXPORT.
 
 
  
  
      
        
          | bool te::xerces::NotEquals  | 
          ( | 
          const XMLCh *const  | 
          s1,  | 
         
        
           | 
           | 
          const char *const  | 
          s2  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
It return true if the two strings are different, otherwise, it returns false. 
- Parameters
 - 
  
    | s1 | The first string to compare.  | 
    | s2 | The second string to compare. | 
  
   
- Returns
 - True if the two strings are different, otherwise, it returns false.
 
- Note
 - This function is intend to be inlined and just convert the XMLCh string to a char* and then compare the two strings. 
 
Definition at line 82 of file Utils.h.
 
 
      
        
          | TEXMLEXPORT xercesc::DOMDocument* te::xerces::readXML  | 
          ( | 
          const std::string &  | 
          xmlFile,  | 
        
        
           | 
           | 
          const bool  | 
          doNamespace = false,  | 
        
        
           | 
           | 
          const bool  | 
          doSchema = false,  | 
        
        
           | 
           | 
          const bool  | 
          valid = false  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
It reads the XML file using the DOM API. 
- Parameters
 - 
  
    | xmlFile | The XML file to be read.  | 
    | doNamespace | If true the namespace processing will be done.  | 
    | doSchema | If true the parser will attempt to use the XML schema.  | 
    | valid | If true the parser will valid the XML file against the schema. | 
  
   
- Returns
 - The read dcument.
 
- Exceptions
 - 
  
    | Exception | If the parser can not read the file it will raise an exception.  | 
  
   
Referenced by GetAttributeVal().
 
 
  
  
      
        
          | int te::xerces::ToInt  | 
          ( | 
          const XMLCh *  | 
          value | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
It converts the XML string to an integer value. 
- Parameters
 - 
  
    | value | An XML string containing a valid int value. | 
  
   
- Returns
 - An int value. 
 
Definition at line 105 of file Utils.h.
 
 
  
  
      
        
          | std::string te::xerces::ToString  | 
          ( | 
          const XMLCh *const  | 
          value | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
It converts the XML string to a standard C++ string. 
- Parameters
 - 
  
    | value | An XML string containing a valid string value. | 
  
   
- Returns
 - An int value.
 
- Note
 - If the pointer is NULL this method will return an empty string. 
 
Definition at line 122 of file Utils.h.