|
Public Member Functions |
virtual IMPORT_C | ~CSenXmlReader () |
| Destructor.
|
virtual IMPORT_C void | SetContentHandler (MSenContentHandlerClient &aContentHandler) |
| Method to allow client to register a content event handler (for XML) for the current reader.
|
virtual IMPORT_C TInt | EnabledParserFeature () |
| Method for checking which feature has been enabled in the parser.
|
virtual IMPORT_C TInt | ParserFeature () |
TInt | SetParserFeature (TInt aParserFeature) |
| Method for enabling a parser feature.
|
IMPORT_C void | ParseL (const TDesC8 &aBuff) |
| Parse an XML buffer.
|
IMPORT_C void | ParseL (RFs &aRFs, const TDesC &aFileToParse) |
| Parse an XML document.
|
virtual void | OnStartDocumentL (const RDocumentParameters &aDocParam, TInt aErrorCode) |
virtual void | OnEndDocumentL (TInt aErrorCode) |
virtual void | OnStartElementL (const RTagInfo &aElement, const RAttributeArray &aAttributes, TInt aErrorCode) |
virtual void | OnEndElementL (const RTagInfo &aElement, TInt aErrorCode) |
virtual void | OnContentL (const TDesC8 &aBytes, TInt aErrorCode) |
virtual void | OnStartPrefixMappingL (const RString &aPrefix, const RString &aUri, TInt aErrorCode) |
virtual void | OnEndPrefixMappingL (const RString &aPrefix, TInt aErrorCode) |
virtual void | OnIgnorableWhiteSpaceL (const TDesC8 &aBytes, TInt aErrorCode) |
virtual void | OnSkippedEntityL (const RString &aName, TInt aErrorCode) |
virtual void | OnProcessingInstructionL (const TDesC8 &aTarget, const TDesC8 &aData, TInt aErrorCode) |
virtual void | OnError (TInt aErrorCode) |
| OnError is a callback method signalled by Symbian XML framework.
|
virtual TAny * | GetExtendedInterface (const TInt32 aUid) |
| This method obtains the interface matching the specified UID.
|
Static Public Member Functions |
static IMPORT_C CSenXmlReader * | NewL () |
| Standard two-phase constructor.
|
static IMPORT_C CSenXmlReader * | NewLC () |
| Standard two-phase constructor.
|
static IMPORT_C CSenXmlReader * | NewL (TInt aParserFeature) |
| A constructor with parser feature enabling.
|
static IMPORT_C CSenXmlReader * | NewLC (TInt aParserFeature) |
| A constructor with parser feature enabling.
|
static IMPORT_C CSenXmlReader * | NewL (const TDesC8 &aParserMimeType) |
| A constructor with parser MIME type.
|
static IMPORT_C CSenXmlReader * | NewLC (const TDesC8 &aParserMimeType) |
| A constructor with parser MIME type.
|
static IMPORT_C CSenXmlReader * | NewL (const TDesC8 &aParserMimeType, TInt aParserFeature) |
| A constructor with parser MIME type and parser feature enabling.
|
static IMPORT_C CSenXmlReader * | NewLC (const TDesC8 &aParserMimeType, TInt aParserFeature) |
| A constructor with parser MIME type and parser feature enabling.
|
Protected Member Functions |
IMPORT_C | CSenXmlReader (TInt aParserFeature) |
| C++ constructor.
|
void | ConstructL (const TDesC8 &aParserMimeType) |
| Symbian 2nd phase constructor.
|
void | RecreateParserL () |
| This method re-initializes encapsulated CParser class instance.
|
|
Parse an XML buffer.
- Since:
- Series60 3.0
- Parameters:
-
| aBuff | Buffer containing document to parse. Note that this method will also leave, if an error is returned from Symbian XML framework. Here are the corresponding enums, and their respective error code values (-1000, -999... and up) (XML-specific errors returned by the XML parser) [from XmlParserErrors.h] EXmlParserError = -1000, EXmlSyntax = 2+EXmlParserError, // -998 EXmlNoElements, // -997 EXmlInvalidToken, // -996 EXmlUnclosedToken, // -995 EXmlPartialChar, // -994 EXmlTagMismatch, // -993 EXmlDuplicateAttribute, // -992 EXmlJunkAfterDocElement, // -991 EXmlPeRef, // -990 EXmlUndefinedEntity, // -989 EXmlRecursiveEntity, // -988 EXmlAsyncEntity, // -987 EXmlBadCharRef, // -986 EXmlBinaryEntityRef, // -985 EXmlAttributeExternalEntityRef, // -984 EXmlMisplacedPi, // -983 EXmlUnknownEncoding, // -982 EXmlIncorrectEncoding, // -981 EXmlUnclosedCdata, // -980 EXmlExternalEntityHandling, // -979 EXmlNotStandalone, // -978 EXmlUnexpectedState, // -977 EXmlEntityDeclInPe, // -976 EXmlDtdRequired, // -975 EXmlFeatureLockedWhileParsing // -974 |
|