|
IncredibleXMLParser
3.05
|
Class Defining the Incredible XML Pull Parser. More...
#include <IXMLParser.h>
Public Member Functions | |
| IXMLPullParser (IXMLReader *uReader, int _szByteBuffer=1024 *1024) | |
| ~IXMLPullParser () | |
| void | reset () |
| re-start the pull parser (set token=IXMLToken_StartDocument) More... | |
| void | clear () |
| IXMLToken | nextToken () |
| read the data stream a little bit more to get the next token More... | |
| int | getColumnNumber () const |
| return the current column number expressed in byte or wchar More... | |
Public Member Functions inherited from IPullParser | |
| IPullParser (IXMLReader *_uReader, int _szByteBuffer) | |
| virtual | ~IPullParser () |
| char | setBufferSize (int _szByteBuffer) |
| Change the memory buffer size. More... | |
| IXMLToken | currentToken () const |
| get the current token More... | |
| bool | findPath (IXMLCStr path, IXMLChar sep='/', IXMLResults *r=NULL) |
| read the data stream to reach a XML tag with the specified path More... | |
| bool | findPathNonConst (IXMLStr path, IXMLChar sep='/', IXMLResults *r=NULL) |
| read the data stream to reach a XML tag with the specified path More... | |
| IXMLCStr | getName () const |
| if the current token==IXMLToken_StartTag, return the tag name More... | |
| bool | isEmptyNode () const |
| if the current token==IXMLToken_StartTag, tell if the tag is directly closed or not More... | |
| bool | isArrayStart () const |
| used during JSON parsing to separate arrays([) from object({). More... | |
| int | nAttribute () const |
| if the current token==IXMLToken_StartTag, return number of attributes More... | |
| IXMLAttribute * | getAttribute (int i=0) const |
| if the current token==IXMLToken_StartTag, return ith attribute More... | |
| IXMLCStr | getAttributeName (int i=0) const |
| if the current token==IXMLToken_StartTag, return ith attribute name More... | |
| IXMLCStr | getAttributeValue (int i=0) const |
| if the current token==IXMLToken_StartTag, return ith attribute value More... | |
| int | szAttributeValue (int i=0) const |
| if the current token==IXMLToken_StartTag, return ith attribute size More... | |
| IXMLCStr | getText () const |
| if the current token==IXMLToken_Text, return the text More... | |
| int | szText () const |
| if the current token==IXMLToken_Text, return the text size in char More... | |
| bool | isTextWhiteSpace () const |
| if the current token==IXMLToken_Text, return true if the text is ignorable (i.e.composed of white space only) More... | |
| const IXMLClear * | getClear () const |
| if the current token==IXMLToken_Clear, return the clear tag More... | |
| IXMLError | getErrorCode () const |
| if the current token==IXMLToken_Error, return the error code More... | |
| long long | getLineNumber () const |
| return the current line number More... | |
| int | getDepth () const |
| return the current depth More... | |
| void | setAutoDetectSourceEncoding (bool autoDetectSource=false) |
| bool | getAutoDetectSourceEncoding () |
| virtual char | setCharEncoding (IXMLCharEncoding sourceEncoding=char_encoding_UTF8, IXMLCharEncoding destinationEncoding=char_encoding_UTF8) |
| virtual IXMLCharEncoding | getCharEncodingDestination () |
| IXMLCStr | getVersion () |
| Return the IXMLParser library version number. More... | |
Static Public Member Functions | |
| static IXMLCStr | guessXMLCharEncoding (unsigned char *b, int l, IXMLChar out[200]) |
| guess the Char Encoding of the text inside the buffer More... | |
| static IXMLCharEncoding | guessXMLCharEncodingCode (unsigned char *b, int l) |
| guess the Char Encoding Code of the text inside the buffer More... | |
Static Public Member Functions inherited from IPullParser | |
| static IXMLCStr | getErrorMessage (IXMLError error) |
| this gives you a user-friendly explanation of the parsing error More... | |
Class Defining the Incredible XML Pull Parser.
This class defines the Incredible XML Pull Parser.
To create a new instance of the Incredible XML Pull Parser, you must provide 2 parameters:
A small value for the Parameter 2 might slow down the Pull Parser significantly because it will be forced to:
Definition at line 658 of file IXMLParser.h.
| IXMLPullParser::IXMLPullParser | ( | IXMLReader * | uReader, |
| int | _szByteBuffer = 1024 *1024 |
||
| ) |
| IXMLPullParser::~IXMLPullParser | ( | ) |
|
virtual |
Call this function when you have finished using this object to release memory used by the internal buffers.
Implements IPullParser.
|
virtual |
return the current column number expressed in byte or wchar
Reimplemented from IPullParser.
|
static |
guess the Char Encoding of the text inside the buffer
|
static |
guess the Char Encoding Code of the text inside the buffer
|
virtual |
read the data stream a little bit more to get the next token
Implements IPullParser.
|
virtual |
re-start the pull parser (set token=IXMLToken_StartDocument)
This does not free the memory buffers and it also keeps the current char encoding settings.
Reimplemented from IPullParser.
1.8.3.1