#include <XMLParser.h>
Public Methods | |
virtual int | setInputStream (AxisIOStream *pInputStream)=0 |
Sets the input stream. | |
virtual const XML_Ch * | getNS4Prefix (const XML_Ch *pcPrefix)=0 |
Gets the corresponding namespace string for a given prefix. | |
virtual int | getStatus ()=0 |
Used to get the parser status. | |
virtual const AnyElement * | next (bool bIsCharData=false)=0 |
Used to get the next XML event. | |
virtual const AnyElement * | anyNext ()=0 |
Used to get the next XML event. | |
virtual const XML_Ch * | getPrefix4NS (const XML_Ch *pcNS)=0 |
Gets the corresponding namespace string for a given prefix. |
|
Used to get the next XML event. Used to get the any next XML event. The valid events are start element, end element, character data and prefix mappings. If we think of SAX events only processing instruction events are not returned by this method. If the implementation of this interface is wrapping up a SAX parser it should follow the above rules. As the function signature suggests the returned AnyElement is const and the caller should not deallocate any member of it. Its the sole responsibility of the Parser wrapper implementation to manage any memory allocated by it.
|
|
Gets the corresponding namespace string for a given prefix. Gets the corresponding namespace string for a given prefix. The Parser should store the prefix/namespace pairs that it finds and valid at the current cursor position of the stream. This method provides a way to get the corresponding namespace for any valid prefix at the current cursor position of the pull parser.
|
|
Gets the corresponding namespace string for a given prefix. Gets the corresponding prefix string for a given namespace. The Parser should store the prefix/namespace pairs that it finds and valid at the current cursor position of the stream. This method provides a way to get the corresponding prefix for any valid namespace at the current cursor position of the pull parser.
|
|
Used to get the parser status.
|
|
Used to get the next XML event. Used to get the next XML data event. The valid events are start element, end element and character data. If we think of SAX events the processing instruction events, namespace prefix mapping events are not returned by this method. If the implementation of this interface is wrapping up a SAX parser it should follow the above rules. As the function signature suggests the returned AnyElement is const and the caller should not deallocate any member of it. Its the sole responsibility of the Parser wrapper implementation to manage any memory allocated by it.
|
|
Sets the input stream. Sets the input stream. Here the parser should be prepared to start parsing a new stream and hence should be initialized to its initial state. Axis will call this function first for each input stream to be parsed.
|