class CSenXmlReader : public CBase |
Protected Member Functions | |
---|---|
CSenXmlReader ( TInt ) | |
void | ConstructL (const TDesC8 &) |
void | RecreateParserL () |
Private Member Functions | |
---|---|
void | CleanUp () |
void | CleanupParser ( TAny *) |
Private Attributes | |
---|---|
MSenContentHandlerClient * | iContentHandler |
TInt | iEnabledFeature |
CParser * | iParser |
RStringPool | iStringPool |
CDesC8Array * | ipNsPrefixes |
CDesC8Array * | ipNsUris |
IMPORT_C | CSenXmlReader | ( | TInt | aParserFeature | ) | [protected] |
C++ constructor.
TInt aParserFeature |
void | CleanupParser | ( | TAny * | apReader | ) | [private, static] |
TAny * apReader |
void | ConstructL | ( | const TDesC8 & | aParserMimeType | ) | [protected] |
Symbian 2nd phase constructor.
const TDesC8 & aParserMimeType | sets the MIME type of this XML parser. |
IMPORT_C TInt | EnabledParserFeature | ( | ) | [virtual] |
TAny * | GetExtendedInterface | ( | const TInt32 | aUid | ) | [virtual] |
const TInt32 aUid | the UID identifying the required interface. |
IMPORT_C CSenXmlReader * | NewL | ( | ) | [static] |
IMPORT_C CSenXmlReader * | NewL | ( | TInt | aParserFeature | ) | [static] |
TInt aParserFeature | is typically some enumeration introduced in Xml::TParserFeature or some other feature introduced in some XML parser implementation. Leave codes: KErrArgument if aParserFeature value is negative. |
IMPORT_C CSenXmlReader * | NewL | ( | const TDesC8 & | aParserMimeType | ) | [static] |
const TDesC8 & aParserMimeType | is the XML parser MIME type. If descriptor is of zero-length, then default MIME type KXmlParserMimeType is used ("text/xml"). Availability of other MIME types depends on underlying parser implementation. |
IMPORT_C CSenXmlReader * | NewL | ( | const TDesC8 & | aParserMimeType, |
TInt | aParserFeature | |||
) | [static] |
IMPORT_C CSenXmlReader * | NewLC | ( | ) | [static] |
IMPORT_C CSenXmlReader * | NewLC | ( | TInt | aParserFeature | ) | [static] |
TInt aParserFeature | is typically some enumeration introduced in Xml::TParserFeature or some other feature introduced in some XML parser implementation. Leave codes: KErrArgument if aParserFeature value is negative. |
IMPORT_C CSenXmlReader * | NewLC | ( | const TDesC8 & | aParserMimeType | ) | [static] |
const TDesC8 & aParserMimeType | is the XML parser MIME type. If descriptor is of zero-length, then default MIME type KXmlParserMimeType is used ("text/xml"). Availability of other MIME types depends on underlying parser implementation. |
IMPORT_C CSenXmlReader * | NewLC | ( | const TDesC8 & | aParserMimeType, |
TInt | aParserFeature | |||
) | [static] |
const TDesC8 & aParserMimeType | is the XML parser MIME type. If descriptor is of zero-length, then default MIME type KXmlParserMimeType is used ("text/xml"). Availability of other MIME types depends on underlying parser implementation. |
TInt aParserFeature | is typically some enumeration introduced in Xml::TParserFeature or some other feature introduced in some XML parser implementation. Leave codes: KErrArgument if aParserFeature value is negative. |
void | OnContentL | ( | const TDesC8 & | aBytes, |
TInt | aErrorCode | |||
) | [virtual] |
void | OnEndDocumentL | ( | TInt | aErrorCode | ) | [virtual] |
TInt aErrorCode |
void | OnEndElementL | ( | const RTagInfo & | aElement, |
TInt | aErrorCode | |||
) | [virtual] |
void | OnEndPrefixMappingL | ( | const RString & | aPrefix, |
TInt | aErrorCode | |||
) | [virtual] |
void | OnError | ( | TInt | aErrorCode | ) | [virtual] |
OnError is a callback method signalled by Symbian XML framework. Current implementation of this class issues a leave in original ParseL() call on any received by this callback implementation. Used leave code will be the received error code.
If content handler was not set, ParseL will leaves with KErrSenXmlContentHandlerNotSet.
TInt aErrorCode | is one of the Symbian XML framework errors listed in XmlFrameworkErrors.h |
void | OnIgnorableWhiteSpaceL | ( | const TDesC8 & | aBytes, |
TInt | aErrorCode | |||
) | [virtual] |
void | OnProcessingInstructionL | ( | const TDesC8 & | aTarget, |
const TDesC8 & | aData, | |||
TInt | aErrorCode | |||
) | [virtual] |
void | OnSkippedEntityL | ( | const RString & | aName, |
TInt | aErrorCode | |||
) | [virtual] |
void | OnStartDocumentL | ( | const RDocumentParameters & | aDocParam, |
TInt | aErrorCode | |||
) | [virtual] |
const RDocumentParameters & aDocParam | |
TInt aErrorCode |
void | OnStartElementL | ( | const RTagInfo & | aElement, |
const RAttributeArray & | aAttributes, | |||
TInt | aErrorCode | |||
) | [virtual] |
const RTagInfo & aElement | |
const RAttributeArray & aAttributes | |
TInt aErrorCode |
void | OnStartPrefixMappingL | ( | const RString & | aPrefix, |
const RString & | aUri, | |||
TInt | aErrorCode | |||
) | [virtual] |
IMPORT_C void | ParseL | ( | const TDesC8 & | aBuff | ) |
const TDesC8 & 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 |
IMPORT_C void | ParseL | ( | RFs & | aRFs, |
const TDesC & | aFileToParse | |||
) |
void | RecreateParserL | ( | ) | [protected] |
IMPORT_C void | SetContentHandler | ( | MSenContentHandlerClient & | aContentHandler | ) | [virtual] |
MSenContentHandlerClient & aContentHandler | The new event handler. |
TInt | SetParserFeature | ( | TInt | aParserFeature | ) |
TInt aParserFeature | is typically some enumeration introduced in Xml::TParserFeature or some other feature introduced in some XML parser implementation. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.