#include <mw/SenXmlReader.h>
class CSenXmlReader : public CBase |
Protected Member Functions | |
---|---|
CSenXmlReader(TInt) | |
void | ConstructL(const TDesC8 &) |
void | RecreateParserL() |
void | ConstructL | ( | const TDesC8 & | aParserMimeType | ) | [protected] |
Symbian 2nd phase constructor.
Parameter | Description |
---|---|
aParserMimeType | sets the MIME type of this XML parser. |
IMPORT_C TInt | EnabledParserFeature | ( | ) | [virtual] |
Returns: the corresponding integer id of the feature
Parameter | Description |
---|---|
aUid | the UID identifying the required interface. |
Returns: NULL if no interface matching the UID is found or if content handler was not set. Otherwise, returns pointer to the interface.
IMPORT_C CSenXmlReader * | NewL | ( | ) | [static] |
Returns: pointer to a new CSenXmlReader instance.
IMPORT_C CSenXmlReader * | NewL | ( | TInt | aParserFeature | ) | [static] |
Parameter | Description |
---|---|
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] |
Parameter | Description |
---|---|
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. |
Returns: pointer to a new CSenXmlReader instance.
IMPORT_C CSenXmlReader * | NewL | ( | const TDesC8 & | aParserMimeType, |
TInt | aParserFeature | |||
) | [static] |
Parameter | Description |
---|---|
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 | ( | ) | [static] |
Returns: pointer to a new CSenXmlReader instance which is left on cleanup stack.
IMPORT_C CSenXmlReader * | NewLC | ( | TInt | aParserFeature | ) | [static] |
Parameter | Description |
---|---|
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] |
Parameter | Description |
---|---|
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. |
Returns: pointer to a new CSenXmlReader instance which is left on cleanup stack.
IMPORT_C CSenXmlReader * | NewLC | ( | const TDesC8 & | aParserMimeType, |
TInt | aParserFeature | |||
) | [static] |
Parameter | Description |
---|---|
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. |
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 | OnEndDocumentL | ( | 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.
Parameter | Description |
---|---|
aErrorCode | is one of the Symbian XML framework errors listed in XmlFrameworkErrors.h |
void | OnStartDocumentL | ( | const RDocumentParameters & | aDocParam, |
TInt | aErrorCode | |||
) | [virtual] |
void | OnStartElementL | ( | const RTagInfo & | aElement, |
const RAttributeArray & | aAttributes, | |||
TInt | aErrorCode | |||
) | [virtual] |
IMPORT_C void | ParseL | ( | const TDesC8 & | aBuff | ) |
Parameter | Description |
---|---|
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 TInt | ParserFeature | ( | ) | [virtual] |
use EnabledParserFeature() instead.
void | RecreateParserL | ( | ) | [protected] |
IMPORT_C void | SetContentHandler | ( | MSenContentHandlerClient & | aContentHandler | ) | [virtual] |
Parameter | Description |
---|---|
aContentHandler | The new event handler. |
Parameter | Description |
---|---|
aParserFeature | is typically some enumeration introduced in Xml::TParserFeature or some other feature introduced in some XML parser implementation. |
Returns: KErrNone or some system-wide error code, if an error has occurred.