Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: parserfeature.h

Namespace Xml

namespace Xml

Description

Members

Defined in Xml:
CMatchData, CParser, EAttributeType_CDATA, EAttributeType_ENTITIES, EAttributeType_ENTITY, EAttributeType_ID, EAttributeType_IDREF, EAttributeType_IDREFS, EAttributeType_NMTOKEN, EAttributeType_NMTOKENS, EAttributeType_NONE, EAttributeType_NOTATION, EConvertTagsToLowerCase, EErrorOnUnrecognisedTags, ELastFeature, ERawContent, EReplaceIntEntityFromExtSubsetByRef, EReportNamespaceMapping, EReportNamespacePrefixes, EReportNamespaces, EReportUnrecognisedTags, ESendFullContentInOneChunk, EXmlVersion_1_1, KErrXmlBadCharacterConversion, KErrXmlBadIndex, KErrXmlDocumentCorrupt, KErrXmlFirst, KErrXmlGeneratorPluginNotFound, KErrXmlLast, KErrXmlMissingStringDictionary, KErrXmlMoreThanOneParserMatched, KErrXmlParserPluginNotFound, KErrXmlPluginNotFound, KErrXmlStringDictionaryPluginNotFound, KErrXmlStringPoolTableNotFound, KErrXmlUnavailableCharacterSet, KErrXmlUnsupportedAttribute, KErrXmlUnsupportedAttributeValue, KErrXmlUnsupportedCharacterSet, KErrXmlUnsupportedDocumentVersion, KErrXmlUnsupportedElement, KErrXmlUnsupportedExtInterface, KXmlSymbianPluginVariant, MContentHandler, MWbxmlExtensionHandler, ParseL(), ParseL(), ParseL(), RAttribute, RAttributeArray, RDocumentParameters, RStringDictionaryCollection, RTagInfo, TAttributeType, TParserFeature


Member functions


ParseL()

IMPORT_C void ParseL(CParser &aParser, const TDesC8 &aDocument);

Description

Parameters

CParser &aParser

const TDesC8 &aDocument


ParseL()

IMPORT_C void ParseL(CParser &aParser, RFs &aFs, const TDesC &aFilename);

Description

Parameters

CParser &aParser

RFs &aFs

const TDesC &aFilename


ParseL()

IMPORT_C void ParseL(CParser &aParser, RFile &aFile);

Description

Parameters

CParser &aParser

RFile &aFile

[Top]


Member classes


Class RDocumentParameters

class RDocumentParameters;

Description

The RDocumentParameters class contains information about the document to be passed to the client.

Members

Defined in Xml::RDocumentParameters:
CharacterSetName()

See also

Member functions


CharacterSetName()

IMPORT_C const RString &CharacterSetName() const;

Pre-Condition

The objects member have been pre-set accordingly.

Description

This method returns a handle to the character encoding name, which is the Internet-standard name of a character set, which is identified in Symbian OS by its UID.

Return value

const RString &

The character encoding name.


Class RTagInfo

class RTagInfo;

Description

The RTagInfo class holds information that describes an element or attribute.

Members

Defined in Xml::RTagInfo:
LocalName(), Prefix(), Uri()

See also:

Member functions


Uri()

IMPORT_C const RString &Uri() const;

Description

This method obtains the uri member of this object.

Return value

const RString &

the uri member.


LocalName()

IMPORT_C const RString &LocalName() const;

Description

This method obtains the LocalName member of this object.

Return value

const RString &

the LocalName member.


Prefix()

IMPORT_C const RString &Prefix() const;

Description

This method obtains the Prefix member of this object.

Return value

const RString &

the Prefix member.


Class RStringDictionaryCollection

class RStringDictionaryCollection;

Description

The RStringDictionaryCollection class holds a collection of Dictionaries requested by the user.

Members

Defined in Xml::RStringDictionaryCollection:
Close(), CurrentDictionaryL(), OpenDictionaryL(), OpenL(), RStringDictionaryCollection(), StringPool()

Construction and destruction


RStringDictionaryCollection()

IMPORT_C RStringDictionaryCollection();

Description

Default constructor

Post-Condition

This object is properly constructed.

Member functions


OpenL()

IMPORT_C void OpenL();

Description

This method opens this resource incrementing the reference count. It must be the first method called after construction.

Post-Condition

The object is ready to be used.


Close()

IMPORT_C void Close();

Description

This method cleans up the object before destruction. It releases all resources in accordance to the R Class pattern.

Post-Condition

This object may be allowed to go out of scope.


OpenDictionaryL()

IMPORT_C void OpenDictionaryL(const TDesC8 &aDictionaryDescription);

Pre-Condition

Connect has been called.

Description

This method loads the Dictionary.

Post-Condition

The Dictionary has been loaded.

Parameters

const TDesC8 &aDictionaryDescription

The Namepspace MIME type.


StringPool()

IMPORT_C RStringPool &StringPool();

Description

This method obtains a handle to the RStringPool

Return value

RStringPool &

the RStringPool


CurrentDictionaryL()

IMPORT_C MStringDictionary &CurrentDictionaryL() const;

Description

This method obtains the current string dictionary in use. Also, serves as a way to test if any dictionaries have been loaded as none needs be.

Return value

MStringDictionary &

the current Dictionary in use, if any.

Leave codes

KErrXmlMissingStringDictionary

if there is no dictionary


Class MWbxmlExtensionHandler

class MWbxmlExtensionHandler;

Description

The Wbxml api extension class. Inherited by classes wishing to cater for this interface, e.g. WbxmlParser.

Members

Defined in Xml::MWbxmlExtensionHandler:
EExtInterfaceUid, OnExtensionL(), TExtInterfaceUid

Member functions


OnExtensionL()

virtual void OnExtensionL(const RString &aData, TInt aToken, TInt aErrorCode)=0;

Description

This method is a receive notification of an extension instruction. The type of extension is specified in aToken and is based on the global tokens specified in WBXML documents.

Parameters

const RString &aData

is the extension data.

TInt aToken

is the global unambiguous token value.

TInt aErrorCode

is the error code. If this is not KErrNone then special action may be required.

Member enumerations


Enum TExtInterfaceUid

TExtInterfaceUid

Description

The uid identifying this extension interface.

EExtInterfaceUid


Class MContentHandler

class MContentHandler;

Description

This class defines the interface required by a client of the xml framework. It allows a client to be placed in a chain with other clients, i.e. a Parser, a Validator, or a User, and therefore allows the flow of information between these links. It provides callbacks analogous to that of the SAX 2.0 interface.

Members

Defined in Xml::MContentHandler:
GetExtendedInterface(), OnContentL(), OnEndDocumentL(), OnEndElementL(), OnEndPrefixMappingL(), OnError(), OnIgnorableWhiteSpaceL(), OnProcessingInstructionL(), OnSkippedEntityL(), OnStartDocumentL(), OnStartElementL(), OnStartPrefixMappingL()

See also

Member functions


OnStartDocumentL()

virtual void OnStartDocumentL(const RDocumentParameters &aDocParam, TInt aErrorCode)=0;

Description

This method is a callback to indicate the start of the document.

Parameters

const RDocumentParameters &aDocParam

Specifies the various parameters of the document.

TInt aErrorCode

is the error code. If this is not KErrNone then special action may be required.


OnEndDocumentL()

virtual void OnEndDocumentL(TInt aErrorCode)=0;

Description

This method is a callback to indicate the end of the document.

Parameters

TInt aErrorCode

is the error code. If this is not KErrNone then special action may be required.


OnStartElementL()

virtual void OnStartElementL(const RTagInfo &aElement, const RAttributeArray &aAttributes, TInt aErrorCode)=0;

Description

This method is a callback to indicate an element has been parsed.

Parameters

const RTagInfo &aElement

is a handle to the element's details.

const RAttributeArray &aAttributes

contains the attributes for the element.

TInt aErrorCode

is the error code. If this is not KErrNone then special action may be required.


OnEndElementL()

virtual void OnEndElementL(const RTagInfo &aElement, TInt aErrorCode)=0;

Description

This method is a callback to indicate the end of the element has been reached.

Parameters

const RTagInfo &aElement

is a handle to the element's details.

TInt aErrorCode

is the error code. If this is not KErrNone then special action may be required.


OnContentL()

virtual void OnContentL(const TDesC8 &aBytes, TInt aErrorCode)=0;

Description

This method is a callback that sends the content of the element. Not all the content may be returned in one go. The data may be sent in chunks. When an OnEndElementL is received this means there is no more content to be sent.

Parameters

const TDesC8 &aBytes

is the raw content data for the element. The client is responsible for converting the data to the required character set if necessary. In some instances the content may be binary and must not be converted.

TInt aErrorCode

is the error code. If this is not KErrNone then special action may be required.


OnStartPrefixMappingL()

virtual void OnStartPrefixMappingL(const RString &aPrefix, const RString &aUri, TInt aErrorCode)=0;

Description

This method is a notification of the beginning of the scope of a prefix-URI Namespace mapping. This method is always called before the corresponding OnStartElementL method.

Parameters

const RString &aPrefix

is the Namespace prefix being declared.

const RString &aUri

is the Namespace URI the prefix is mapped to.

TInt aErrorCode

is the error code. If this is not KErrNone then special action may be required.


OnEndPrefixMappingL()

virtual void OnEndPrefixMappingL(const RString &aPrefix, TInt aErrorCode)=0;

Description

This method is a notification of the end of the scope of a prefix-URI mapping. This method is called after the corresponding DoEndElementL method.

Parameters

const RString &aPrefix

is the Namespace prefix that was mapped.

TInt aErrorCode

is the error code. If this is not KErrNone then special action may be required.


OnIgnorableWhiteSpaceL()

virtual void OnIgnorableWhiteSpaceL(const TDesC8 &aBytes, TInt aErrorCode)=0;

Description

This method is a notification of ignorable whitespace in element content.

Parameters

const TDesC8 &aBytes

are the ignored bytes from the document being parsed.

TInt aErrorCode

is the error code. If this is not KErrNone then special action may be required.


OnSkippedEntityL()

virtual void OnSkippedEntityL(const RString &aName, TInt aErrorCode)=0;

Description

This method is a notification of a skipped entity. If the parser encounters an external entity it does not need to expand it - it can return the entity as aName for the client to deal with.

Parameters

const RString &aName

is the name of the skipped entity.

TInt aErrorCode

is the error code. If this is not KErrNone then special action may be required.


OnProcessingInstructionL()

virtual void OnProcessingInstructionL(const TDesC8 &aTarget, const TDesC8 &aData, TInt aErrorCode)=0;

Description

This method is a receive notification of a processing instruction.

Parameters

const TDesC8 &aTarget

is the processing instruction target.

const TDesC8 &aData

is the processing instruction data. If empty none was supplied.

TInt aErrorCode

is the error code. If this is not KErrNone then special action may be required.


OnError()

virtual void OnError(TInt aErrorCode)=0;

Description

This method indicates an error has occurred.

Parameters

TInt aErrorCode


GetExtendedInterface()

virtual TAny *GetExtendedInterface(const TInt32 aUid)=0;

Description

This method obtains the interface matching the specified uid.

Parameters

const TInt32 aUid

the uid identifying the required interface.

Return value

TAny *

0 if no interface matching the uid is found. Otherwise, the this pointer cast to that interface.


Class CParser

class CParser : public CBase;

Description

If you need to parse xml this is the class you need to use.

Derivation

Members

Defined in Xml::CParser:
AddPreloadedDictionaryL(), DisableFeature(), EnableFeature(), IsFeatureEnabled(), NewL(), NewL(), NewLC(), NewLC(), ParseBeginL(), ParseBeginL(), ParseBeginL(), ParseEndL(), ParseL(), SetProcessorChainL(), StringDictionaryCollection(), StringPool(), ~CParser()

Inherited from CBase:
Delete(), Extension_(), operator new()

See also

Construction and destruction


NewL()

static IMPORT_C CParser *NewL(const TDesC8 &aParserMimeType, MContentHandler &aCallback);

Description

This method creates a parser that is ready to parse documents of the specified mime type.

If there are multiple parser plugins in the system which can parse the mime type, the XML framework will choose a parser.

The criteria used to choose a parser, from many matching parsers, is as follows:

Parameters

const TDesC8 &aParserMimeType

The mime type of the documents to parse (e.g. "txt/xml").

MContentHandler &aCallback

The handler for parser generated events.

Return value

CParser *

A constructed parser

Leave codes

KErrNoMemory

If there is not enough memory to create parser or one of system wide error codes.

KErrXmlParserPluginNotFound

If Xml framework is unable to find a parser based on data provided in aParserMimeType.

...

One of the system wide error codes or one of the Xml specific ones defined in XmlFrameworkErrors.h


NewLC()

static IMPORT_C CParser *NewLC(const TDesC8 &aParserMimeType, MContentHandler &aCallback);

Description

This method is similar to NewL, but leaves the created parser on the cleanup stack.

Parameters

const TDesC8 &aParserMimeType

The mime type of the documents to parse (e.g. "txt/xml").

MContentHandler &aCallback

The handler for parser generated events.

Return value

CParser *

A constructed parser

Leave codes

KErrNoMemory

If there is not enough memory to create parser or one of system wide error codes.

KErrXmlParserPluginNotFound

If Xml framework is unable to find a parser based on data provided in aParserMimeType.

...

One of the system wide error codes or one of the Xml specific ones defined in XmlFrameworkErrors.h


NewL()

static IMPORT_C CParser *NewL(const CMatchData &aCriteria, MContentHandler &aCallback);

Description

This method creates the particular parser specified in CMatchData parameter.

The parser plugin resolution process is based on mime type and variant field. Both are provided in CMatchData parameter. Mime Type is a mandatory string for the resolution process and it is matched against the data field of plugin resource files. Variant string is optional. If it exists, it is matched against the first entry of the opaque data field of plugin resource files.

If the query is narrowed down to many parsers, the XML framework might either leave with an error (KErrXmlMoreThanOneParserMatched), or choose a parser. The behaviour is specified by LeaveOnMany flag. The default value of the flag is FALSE ('choose a parser' behaviour).

The criteria used to choose a parser, from many matching parsers, is as follows:

Case sensitivity of the string matching process is applied according to the relevant flag in CMatchData. The default value is TRUE (Case Sensitivity enabled).

Only ROM-based parsers are returned if the relevant flag is set in CMatchData. The default value is FALSE (all parsers are considered).

Parameters

const CMatchData &aCriteria

The specific information about required parser (mime type, variant data).

MContentHandler &aCallback

The xml/wbxml event handler.

Return value

CParser *

A constructed parser

Leave codes

KErrNoMemory

If there is not enough memory to create parser or one of system wide error codes.

KErrXmlParserPluginNotFound

If Xml framework is unable to find a parser based on data provided in CMatchData.

KErrXmlMoreThanOneParserMatched

If Xml framework narrowed down the query to many parsers and a user requested to leave in such case (LeaveOnMany flag set).

...

One of the system wide error codes or one of the Xml specific ones defined in XmlFrameworkErrors.h

See also:


NewLC()

static IMPORT_C CParser *NewLC(const CMatchData &aCriteria, MContentHandler &aCallback);

Description

This method creates the particular parser specified in CMatchData parameter. It performs the same way as NewL with the exception that it leaves the object on the cleanup stack.

Parameters

const CMatchData &aCriteria

The specific information about required parser (mime type, version, variant data).

MContentHandler &aCallback

The xml/wbxml event handler.

Return value

CParser *

A constructed parser

Leave codes

KErrNoMemory

If there is not enough memory to create parser or one of system wide error codes.

KErrXmlParserPluginNotFound

If Xml framework is unable to find a parser based on data provided in CMatchData.

KErrXmlMoreThanOneParserMatched

If Xml framework narrowed down the query to many parsers and a user requested to leave in such case (LeaveOnMany flag set).

...

One of the system wide error codes or one of the Xml specific ones defined in XmlFrameworkErrors.h

See also:


~CParser()

virtual ~CParser();

Description

This method is the destructor for the object.

Member functions


ParseBeginL()

IMPORT_C void ParseBeginL();

Description

This method tells the parser that we're going to start parsing a document using the default mime type specified on construction.

The processor chain and features will be cleared if the parser currently set is not the default, all old features are removed as these generally have no meaning between parsers.

Leave codes

...

One of the system wide error codes or one of the Xml specific ones defined in XmlFrameworkErrors.h


ParseBeginL()

IMPORT_C void ParseBeginL(const TDesC8 &aDocumentMimeType);

Description

This method tells the parser that we're going to start parsing a document using the parser associated with this mime type.

Parameters

const TDesC8 &aDocumentMimeType

the mime type of the document


ParseBeginL()

IMPORT_C void ParseBeginL(const CMatchData &aCriteria);

Description

This method tells the parser that we're going to start parsing a document using the parser associated with given CMatchData criteria.

Parameters

const CMatchData &aCriteria

The specific information about required parser (mime type, version, variant data).

Leave codes

KErrNoMemory

If there is not enough memory to create parser.

KErrArgument

If the data specified in CMatchData are not sufficient.

KErrXmlParserPluginNotFound

If Xml framework is unable to find a parser based on data provided in CMatchData.

KErrXmlMoreThanOneParserMatched

If Xml framework narrowed down the query to many parsers and a user requested to leave in such case (LeaveOnMany flag set).

...

One of the system wide error codes or one of the Xml specific ones defined in XmlFrameworkErrors.h

See also:


ParseL()

IMPORT_C void ParseL(const TDesC8 &aFragment);

Description

This method tells the parser to parse a fragment of a document. Could be the whole document. ParseEndL should be called once the whole document has been parsed.

The parser currently set will be used.

Parameters

const TDesC8 &aFragment

the fragment to parse

Leave codes

...

One of the system wide error codes or one of the Xml specific ones defined in XmlFrameworkErrors.h


ParseEndL()

IMPORT_C void ParseEndL();

Description

This method tells the parser that we've finished parsing the current document and should be called after calling CParser::ParseL for the final time, as this will initiate error callbacks via MContentHandler, and clean up memory where appropriate, should an error have occured during the parsing process. Such an error could occur when trying to parse a truncated document.

Leave codes

...

One of the system wide error codes or one of the Xml specific ones defined in XmlFrameworkErrors.h


SetProcessorChainL()

IMPORT_C void SetProcessorChainL(const RContentProcessorUids &aPlugins);

Description

This method changes the client and plugin chain.

Parameters

const RContentProcessorUids &aPlugins

a list of plugin implementation uids that make up the callback chain.

Leave codes

...

One of the system wide error codes or one of the Xml specific ones defined in XmlFrameworkErrors.h


EnableFeature()

IMPORT_C TInt EnableFeature(TInt aParserFeature);

Description

This method enables a specific feature of the parser.

Parameters

TInt aParserFeature

The parser feature that must be enabled.

Return value

TInt

KErrNone if successful, KErrNotSupported if the parser doesn't support the feature.

See also:


DisableFeature()

IMPORT_C TInt DisableFeature(TInt aParserFeature);

Description

This method disables a specific feature of the parser.

Parameters

TInt aParserFeature

The parser feature that must be disabled.

Return value

TInt

KErrNone if successful, KErrNotSupported if the feature can't be disabled.

See also:


IsFeatureEnabled()

IMPORT_C TBool IsFeatureEnabled(TInt aParserFeature) const;

Description

This method tell whether a specific feature of the parser is enabled.

Parameters

TInt aParserFeature

Return value

TBool

True if the feature is enabled.

See also:


AddPreloadedDictionaryL()

IMPORT_C void AddPreloadedDictionaryL(const TDesC8 &aPublicId);

Description

This method preloads a string dictionary prior to parsing.

Parameters

const TDesC8 &aPublicId

the public identifier representing the document dtd.

Leave codes

...

One of the system wide error codes or one of the Xml specific ones defined in XmlFrameworkErrors.h


StringPool()

IMPORT_C RStringPool &StringPool();

Description

This method obtains a handle to the current string pool.

Return value

RStringPool &

handle to the current string pool.


StringDictionaryCollection()

IMPORT_C RStringDictionaryCollection &StringDictionaryCollection();

Description

This method obtains a handle to the current StringDictionaryCollection.

Return value

RStringDictionaryCollection &

handle to the current StringDictionaryCollection.


Class CMatchData

class CMatchData : public CBase;

Description

CMatchData class provides detailed parser information for XML framework. Client application should use this class to precisely specify the plugin, which should be used as a parsing engine in XML framework.

Derivation

Members

Defined in Xml::CMatchData:
MimeType(), NewL(), NewLC(), SetCaseSensitivity(), SetLeaveOnMany(), SetMimeTypeL(), SetRomOnly(), SetVariantL(), Variant()

Inherited from CBase:
Delete(), Extension_(), operator new()

See also

Construction and destruction


NewL()

static IMPORT_C CMatchData *NewL();

Description

Creates CMatchData object with its default values.

Return value

CMatchData *

A pointer to the newly created CMatchData object.

Leave codes

KErrNoMemory

If there is not enough memory to create an object.


NewLC()

static IMPORT_C CMatchData *NewLC();

Description

Creates CMatchData object with its default values. Leaves an obeject pointer on a cleanup stack.

Return value

CMatchData *

A pointer to the newly created CMatchData object.

Leave codes

KErrNoMemory

If there is not enough memory

Member functions


SetMimeTypeL()

IMPORT_C void SetMimeTypeL(const TDesC8 &aData);

Description

Sets up a mime type attribute to a string given as an aData descriptor.

Parameters

const TDesC8 &aData

String descriptor

Leave codes

KErrNoMemory

If there is not enough memory for new string allocation.

KErrArgument

If passed descriptor doesn't comply with length constraints.


MimeType()

IMPORT_C const TPtrC8 MimeType() const;

Description

Returns a pointer to the mime type string.

Return value

const TPtrC8

A pointer to the mime type string. Pointer to KNullDesC8 is returned if not set up yet.


SetVariantL()

IMPORT_C void SetVariantL(const TDesC8 &aVariant);

Description

Sets up a variant attribute to a string given as an aVariant descriptor. If this is not set OR is set to a string of length 0 the Variant ID is not used during parser resolution and hence the variant IDs of plug-in parsers are ignored.

Parameters

const TDesC8 &aVariant

Leave codes

KErrNoMemory

If there is not enough memory for new string allocation.

KErrArgument

If passed descriptor doesn't comply with length constraints.


Variant()

IMPORT_C const TPtrC8 Variant() const;

Description

Returns a pointer to the variant string.

Return value

const TPtrC8

A pointer to the variant string. Pointer to KNullDesC8 is returned if not set up yet.


SetLeaveOnMany()

IMPORT_C void SetLeaveOnMany(TBool aSetting);

Description

Sets the LeaveOnManyFlag flag. If set, it notifies customized resolver it should leave when the query is resolved to more than one parser. By default this flag is not set, so the framework chooses a parser in this case.

Parameters

TBool aSetting

The setting value.


SetRomOnly()

IMPORT_C void SetRomOnly(TBool aSetting);

Description

Sets the Rom Only flag. If set, it notifies customized resolver the request is for ROM-based parsers only. By default this flag is not set, so the framework searches for rom and non-rom based parsers.

Parameters

TBool aSetting

The setting value.


SetCaseSensitivity()

IMPORT_C void SetCaseSensitivity(TBool aSetting);

Description

Sets the Case Sensitivity flag. Customized resolver uses this setting to turn on or off case sensitivity for strings matching.

Parameters

TBool aSetting

The setting value.


Class RAttribute

class RAttribute;

Description

The RAttribute class holds an attribute's description belonging to an element.

Members

Defined in Xml::RAttribute:
Attribute(), Type(), Value()

See also:

Member functions


Attribute()

IMPORT_C const RTagInfo &Attribute() const;

Pre-Condition

The objects members have been pre-set accordingly.

Description

This method returns a handle to the attribute's name details.

Return value

const RTagInfo &

The attribute's name details.


Value()

IMPORT_C const RString &Value() const;

Pre-Condition

The objects members have been pre-set accordingly.

Description

This method returns a handle to the attribute value. If the attribute value is a list of tokens (IDREFS, ENTITIES or NMTOKENS), the tokens will be concatenated into a single RString with each token separated by a single space.

Return value

const RString &

A handle to the attribute value.


Type()

IMPORT_C TAttributeType Type() const;

Pre-Condition

The objects members have been pre-set accordingly.

Description

This method returns the attribute's type.

Return value

TAttributeType

The attribute's type.

[Top]


Member enumerations


Enum TAttributeType

TAttributeType

Description

Specifies the type of this attribute object. These values are defined in the xml specification. For other specifications they may also be used or 'none'.

EAttributeType_CDATA

Specifies a string type.

EAttributeType_ID

Specifies a tokenized type.

EAttributeType_IDREF

Specifies a tokenized type.

EAttributeType_IDREFS

Specifies a tokenized type.

EAttributeType_NMTOKEN

Specifies a tokenized type.

EAttributeType_NMTOKENS

Specifies a tokenized type.

EAttributeType_ENTITY

Specifies a tokenized type.

EAttributeType_ENTITIES

Specifies a tokenized type.

EAttributeType_NOTATION

Specifies a tokenized type.

EAttributeType_NONE

Specifies no type, or unsupported.


Enum TParserFeature

TParserFeature

Description

Features defined for XML Framework parser plug-ins.

Every parser has a set of optional features that it may implement. This enumeration is the set of all features known to the framework and its plug-ins. Each feature is assigned a flag bit from the 32 possible.

EConvertTagsToLowerCase

Convert elements and attributes to lowercase. This can be used for case-insensitive HTML so that a tag can be matched to a static string in the string pool.

EErrorOnUnrecognisedTags

Report an error when unrecognised tags are found.

EReportUnrecognisedTags

Reports unrecognised tags.

EReportNamespaces

Report the namespace.

EReportNamespacePrefixes

Report the namespace prefix.

ESendFullContentInOneChunk

Send all content data for an element in one chunk.

EReportNamespaceMapping

Report namespace mappings via the OnStartPrefixMapping & OnEndPrefixMapping methods.

ERawContent

Describe the data in the specified encoding, otherwise use utf-8.

EReplaceIntEntityFromExtSubsetByRef

When this feature is enabled the parser will allow (not generate an error) entities from external subsets to appear in element attribute values. When the replacement text of such entities are not known the parser will return the entity reference as it appears in the document e.g. "&ext_ref;"

EXmlVersion_1_1

When this feature is not supported the parser is an XML 1.0 parser. When set parser can handle both XML 1.1 & 1.0 documents, otherwise just XML 1.0. Equivalent to the standard SAX2 feature "xml-1.1"

ELastFeature

Used to mark the highest flag in use. Update to reflect any new enumerations added.

[Top]


Member type definitions


Typedef RAttributeArray

typedef RArray<RAttribute> Xml::RAttributeArray;

Description

Defines a list of attributes for an element.

See also

See also:

[Top]


Member data


KErrXmlStringDictionaryPluginNotFound

const TInt KErrXmlStringDictionaryPluginNotFound;

Description


KErrXmlParserPluginNotFound

const TInt KErrXmlParserPluginNotFound;

Description


KXmlSymbianPluginVariant

const TLitC8< sizeof("Symbian") KXmlSymbianPluginVariant;

Description

The plugin variant string of the default Symbian-provided XML parser plugins.


KErrXmlGeneratorPluginNotFound

const TInt KErrXmlGeneratorPluginNotFound;

Description


KErrXmlPluginNotFound

const TInt KErrXmlPluginNotFound;

Description


KErrXmlBadCharacterConversion

const TInt KErrXmlBadCharacterConversion;

Description


KErrXmlUnsupportedCharacterSet

const TInt KErrXmlUnsupportedCharacterSet;

Description


KErrXmlUnavailableCharacterSet

const TInt KErrXmlUnavailableCharacterSet;

Description


KErrXmlUnsupportedElement

const TInt KErrXmlUnsupportedElement;

Description


KErrXmlUnsupportedAttribute

const TInt KErrXmlUnsupportedAttribute;

Description


KErrXmlUnsupportedAttributeValue

const TInt KErrXmlUnsupportedAttributeValue;

Description


KErrXmlMissingStringDictionary

const TInt KErrXmlMissingStringDictionary;

Description


KErrXmlUnsupportedDocumentVersion

const TInt KErrXmlUnsupportedDocumentVersion;

Description


KErrXmlDocumentCorrupt

const TInt KErrXmlDocumentCorrupt;

Description


KErrXmlStringPoolTableNotFound

const TInt KErrXmlStringPoolTableNotFound;

Description


KErrXmlBadIndex

const TInt KErrXmlBadIndex;

Description


KErrXmlUnsupportedExtInterface

const TInt KErrXmlUnsupportedExtInterface;

Description


KErrXmlMoreThanOneParserMatched

const TInt KErrXmlMoreThanOneParserMatched;

Description

Indicates the parser query is matched to more than one parser. This error can be returned only if the request is to leave in such a case - LeaveOnMany flag is set.


KErrXmlFirst

const TInt KErrXmlFirst;

Description


KErrXmlLast

const TInt KErrXmlLast;

Description