ost::XMLStream(3) | Library Functions Manual | ost::XMLStream(3) |
ost::XMLStream - This class impliments a basic XML stream parser that can be used to examine an XML resource thru virtual I/O methods.
#include <xml.h>
Inherited by ost::XMLRPC.
virtual bool open (const char *resource)
May perform an open operation on behalf of a parsed resource. virtual void
close (void)
May perform a close operation of an i/o source when the parser has completed
operation. virtual Slog::Level getLogging (void)
Get error logging level. virtual void comment (const unsigned char
*text, size_t len)
Virtual to receive embedded comments in an XML document being parsed. virtual
int read (unsigned char *buffer, size_t len)=0
Read method to aquire data for the parser. virtual void characters
(const unsigned char *text, size_t len)=0
Virtual to receive character text extracted from the document in the current
element. virtual void startDocument (void)
Identify start of document event. virtual void endDocument (void)
Identify end of document event. virtual void startElement (const
unsigned char *name, const unsigned char **attr)=0
Identify start of an element in the document. virtual void endElement
(const unsigned char *name)=0
Identify end of an element in the document. bool parse (const char
*resource=NULL)
Parse a resource as a stream thru the virtual read method.
virtual ~XMLStream ()
This class impliments a basic XML stream parser that can be used to examine an XML resource thru virtual I/O methods.
This class must be derived into one that can impliment the physical I/O required to parse actual data. A mixer class using XMLStream and URLStream would seem a likely combination for this purpose.
Author:
Examples:
xmlfetch.cpp.
Virtual to receive character text extracted from the document in the current element.
Parameters:
May perform a close operation of an i/o source when the parser has completed operation.
Virtual to receive embedded comments in an XML document being parsed.
Parameters:
Identify end of document event.
Identify end of an element in the document.
Parameters:
Get error logging level.
Returns:
May perform an open operation on behalf of a parsed resource. In some cases, the parser may be merged with a class that already has performed some kind of open, and this method can then be ignored.
Returns:
Parameters:
Parse a resource as a stream thru the virtual read method.
Returns:
Parameters:
Read method to aquire data for the parser.
Returns:
Parameters:
Identify start of document event.
Identify start of an element in the document.
Parameters:
Generated automatically by Doxygen for GNU CommonC++ from the source code.
Wed Oct 31 2018 | GNU CommonC++ |