Base Framework
|
Support for reading an XML document using callbacks. More...
#include <base/xml/XMLDefaultReader.h>
Inherits XMLReader.
Public Member Functions | |
XMLDefaultReader () noexcept | |
bool | getFeature (const String &name) const |
void | setFeature (const String &name, bool value) |
ContentHandler * | getContentHandler () const noexcept |
DTDHandler * | getDTDHandler () const noexcept |
EntityResolver * | getEntityResolver () const noexcept |
ErrorHandler * | getErrorHandler () const noexcept |
void | parse (File file, const String &uri=String()) |
void | parse (const char *buffer, unsigned int size, const String &uri) |
void | parse (const String &systemId) |
void | setContentHandler (ContentHandler *handler) noexcept |
void | setDTDHandler (DTDHandler *handler) noexcept |
void | setEntityResolver (EntityResolver *_entityResolver) noexcept |
void | setErrorHandler (ErrorHandler *handler) noexcept |
bool | getValidation () const noexcept |
void | setVatidation (bool validate) noexcept |
bool | isStandalone () const noexcept |
void | terminate () noexcept |
~XMLDefaultReader () noexcept | |
![]() | |
virtual void | setContentHandler (ContentHandler *handler) noexcept=0 |
virtual void | setEntityResolver (EntityResolver *entityResolver) noexcept=0 |
![]() | |
Polymorphic () noexcept | |
virtual | ~Polymorphic () noexcept |
Support for reading an XML document using callbacks.
|
noexcept |
Initializes the XML reader.
|
noexcept |
Destroys the XML reader.
|
inlinevirtualnoexcept |
Returns the current content handler.
Implements XMLReader.
|
inlinevirtualnoexcept |
Returns the current DTD handler.
Implements XMLReader.
|
inlinevirtualnoexcept |
Returns the current entity resolver.
Implements XMLReader.
|
inlinevirtualnoexcept |
Returns the current error handler.
Implements XMLReader.
|
virtual |
Returns the value of the specified feature.
Implements XMLReader.
|
inlinevirtualnoexcept |
Returns the validation flag.
Implements XMLReader.
|
inlinevirtualnoexcept |
Returns true if the document is a standalone document.
Implements XMLReader.
void XMLDefaultReader::parse | ( | const char * | buffer, |
unsigned int | size, | ||
const String & | uri | ||
) |
Parses the specified buffer.
buffer | The buffer to be parsed. |
size | The size of the buffer. |
uri | The uri used to resolve entities. Default is improper string. |
void XMLDefaultReader::parse | ( | const String & | systemId | ) |
Parses an XML document from a system identifier (URI).
systemId | The identifier of the document. |
Parses the specified file.
file | The file to be parsed. |
uri | The uri used to resolve entities. Default is improper string. |
|
inlinenoexcept |
Registers a content event handler.
|
inlinevirtualnoexcept |
Registers a DTD event handler.
Implements XMLReader.
|
inlinenoexcept |
Registers an entity resolver.
|
inlinevirtualnoexcept |
Registers an error event handler.
Implements XMLReader.
|
virtual |
Sets the value of the specified feature.
Implements XMLReader.
|
inlinevirtualnoexcept |
Sets the validation flag.
Implements XMLReader.
|
virtualnoexcept |
Terminates the parsing.
Implements XMLReader.