This class models a XML reader object. More...
#include <Reader.h>
  
 Public Member Functions | |
| virtual std::string | getAttr (const std::string &name) const =0 | 
| It returns the attribute value in the case of an element node with valid attributes.  More... | |
| virtual std::string | getAttr (std::size_t i) const =0 | 
| It returns the attribute value in the case of an element node with valid attributes.  More... | |
| virtual double | getAttrAsDouble (const std::string &name) const | 
| It returns the attribute value in the case of an element node with valid attributes.  More... | |
| virtual double | getAttrAsDouble (std::size_t i) const | 
| It returns the attribute value in the case of an element node with valid attributes.  More... | |
| virtual boost::int32_t | getAttrAsInt32 (const std::string &name) const | 
| It returns the attribute value in the case of an element node with valid attributes.  More... | |
| virtual boost::int32_t | getAttrAsInt32 (std::size_t i) const | 
| It returns the attribute value in the case of an element node with valid attributes.  More... | |
| virtual boost::uint32_t | getAttrAsUInt32 (std::size_t i) const | 
| It returns the attribute value in the case of an element node with valid attributes.  More... | |
| virtual boost::uint32_t | getAttrAsUInt32 (const std::string name) const | 
| It returns the attribute value in the case of an element node with valid attributes.  More... | |
| virtual std::string | getAttrLocalName (std::size_t i) const =0 | 
| It returns the local part of the attribute name for the i-th attribute.  More... | |
| virtual std::size_t | getAttrPosition (const std::string &name) const =0 | 
| It returns the attribute position.  More... | |
| virtual std::string | getAttrQName (std::size_t i) const =0 | 
| It returns the qualified name for the i-th attribute.  More... | |
| virtual std::string | getAttrURI (std::size_t i) const =0 | 
| It returns the attribute URI of the associated namespace in the case of an element node.  More... | |
| virtual std::size_t | getElementDataLen () const =0 | 
| It returns the element data value in the case of VALUE node.  More... | |
| virtual std::string | getElementLocalName () const =0 | 
| It returns the local part of the element name in the case of an element node.  More... | |
| virtual std::string | getElementQName () const =0 | 
| It returns the qualified name in the case of an element node.  More... | |
| virtual std::string | getElementURI () const =0 | 
| It returns the URI of the associated namespace in the case of an element node.  More... | |
| virtual std::string | getElementValue () const =0 | 
| It returns the element data value in the case of VALUE node.  More... | |
| virtual bool | getElementValueAsBoolean () const | 
| It returns the element data value in the case of VALUE node.  More... | |
| virtual double | getElementValueAsDouble () const | 
| It returns the element data value in the case of VALUE node.  More... | |
| virtual boost::int32_t | getElementValueAsInt32 () const | 
| It returns the element data value in the case of VALUE node.  More... | |
| virtual void | getNamespace (std::size_t i, std::pair< std::string, std::string > &ns) const =0 | 
| virtual NodeType | getNodeType () const =0 | 
| It return the type of node read.  More... | |
| virtual std::size_t | getNumberOfAttrs () const =0 | 
| It returns the number of attributes in the case of an element node.  More... | |
| virtual std::size_t | getNumberOfNamespaces () const =0 | 
| virtual bool | hasAttrs () const =0 | 
| It tells if the element has attributes in the case of an element node.  More... | |
| virtual bool | next ()=0 | 
| It gets the next event to be read.  More... | |
| virtual void | read (const std::string &fileURI)=0 | 
| It prepare the given file to be read.  More... | |
| Reader () | |
| Default constructor.  More... | |
| virtual void | setCacheGrammarFromParse (bool d)=0 | 
| If true it caches the grammar in the pool for re-use in subsequent parses.  More... | |
| virtual void | setDoNamespaces (bool d)=0 | 
| It enables or disables the parser namespace processing.  More... | |
| virtual void | setDoSchema (bool d)=0 | 
| It enables or disables the parser schema processing.  More... | |
| virtual void | setIgnoreWhiteSpaces (bool d)=0 | 
| If true the parser will ignore the white space characters.  More... | |
| virtual void | setInternalBufferSize (const std::size_t size)=0 | 
| It sets the maximal allowed buffer size used for parsing.  More... | |
| virtual void | setUseCachedGrammarInParse (bool d)=0 | 
| If true the reader will use cached grammar if it exists in the pool.  More... | |
| virtual void | setValidationScheme (bool d)=0 | 
| If true the parser will perform a validation scheme.  More... | |
| virtual | ~Reader () | 
| Virtual destructor.  More... | |
This class models a XML reader object.
This API is intend to simplify the task of reading XML files. We have tried to model it close to the Libxml2 API (see http://xmlsoft.org/xmlreader.html for more information) but keeping all Xerces-C++ support capabilities: schema validation and grammar cache.
      
  | 
  inlinevirtual | 
      
  | 
  pure virtual | 
It returns the attribute value in the case of an element node with valid attributes.
| name | The attribute name. | 
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
It returns the attribute value in the case of an element node with valid attributes.
| i | The attribute position. | 
Implemented in te::xerces::Reader.
      
  | 
  virtual | 
It returns the attribute value in the case of an element node with valid attributes.
| name | The attribute name. | 
      
  | 
  virtual | 
It returns the attribute value in the case of an element node with valid attributes.
| i | The attribute position. | 
      
  | 
  virtual | 
It returns the attribute value in the case of an element node with valid attributes.
| name | The attribute name. | 
      
  | 
  virtual | 
It returns the attribute value in the case of an element node with valid attributes.
| i | The attribute position. | 
      
  | 
  virtual | 
It returns the attribute value in the case of an element node with valid attributes.
| i | The attribute position. | 
      
  | 
  virtual | 
It returns the attribute value in the case of an element node with valid attributes.
| name | The attribute name. | 
      
  | 
  pure virtual | 
It returns the local part of the attribute name for the i-th attribute.
| i | The attribute position index. | 
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
It returns the attribute position.
| name | The attribute name. | 
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
It returns the qualified name for the i-th attribute.
| i | The attribute position index. | 
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
It returns the attribute URI of the associated namespace in the case of an element node.
| i | The attribute position index. | 
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
It returns the element data value in the case of VALUE node.
It returns the element data value length in the case of VALUE or CDATA node.
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
It returns the local part of the element name in the case of an element node.
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
It returns the qualified name in the case of an element node.
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
It returns the URI of the associated namespace in the case of an element node.
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
It returns the element data value in the case of VALUE node.
Implemented in te::xerces::Reader.
      
  | 
  virtual | 
It returns the element data value in the case of VALUE node.
      
  | 
  virtual | 
It returns the element data value in the case of VALUE node.
      
  | 
  virtual | 
It returns the element data value in the case of VALUE node.
      
  | 
  pure virtual | 
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
      
  | 
  pure virtual | 
It returns the number of attributes in the case of an element node.
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
It tells if the element has attributes in the case of an element node.
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
It gets the next event to be read.
| Exception | It throws an exception if something goes wrong during the text read. | 
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
It prepare the given file to be read.
You must call read to start parsing the XML document.
| fileURI | A path to a XML file or any URI where it can be found. | 
| Exception | It throws an exception if the file doesn't exist or if the internal parser can not read it. | 
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
If true it caches the grammar in the pool for re-use in subsequent parses.
| d | If If true it caches the grammar in the pool for re-use in subsequent parses. | 
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
It enables or disables the parser namespace processing.
| d | If true the internal parser will perform the namespace processing otherwise this will not be done. | 
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
It enables or disables the parser schema processing.
| d | If true the internal parser will perform the schema processing otherwise this will not be done. | 
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
If true the parser will ignore the white space characters.
| d | If true the parser will ignore the white space characters. | 
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
It sets the maximal allowed buffer size used for parsing.
| size | The maximal allowed buffer size used for parsing. | 
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
If true the reader will use cached grammar if it exists in the pool.
| d | If true the reader will use cached grammar if it exists in the pool. | 
Implemented in te::xerces::Reader.
      
  | 
  pure virtual | 
If true the parser will perform a validation scheme.
| d | If true the parser will perform a validation scheme. | 
Implemented in te::xerces::Reader.