TXmlEngSerializationOptions Class Reference

class TXmlEngSerializationOptions

This class stores serialization options to be used when a document is serialized. RXmlEngDocument::SaveL()

Constructor & Destructor Documentation

TXmlEngSerializationOptions(TUint, const TDesC8 &)

IMPORT_CTXmlEngSerializationOptions(TUintaOptionFlags = (TXmlEngSerializationOptions::KOptionIndent|TXmlEngSerializationOptions::KOptionStandalone|TXmlEngSerializationOptions::KOptionEncoding),
const TDesC8 &aEncoding =  KNullDesC8
)

Constructor

Parameters

TUint aOptionFlags = (TXmlEngSerializationOptions::KOptionIndent|TXmlEngSerializationOptions::KOptionStandalone|TXmlEngSerializationOptions::KOptionEncoding)Serialization options
const TDesC8 & aEncoding =  KNullDesC8 Serialization encoding. If KNullDesC8, the document encoding is used.

Member Functions Documentation

SetDataSerializer(MXmlEngDataSerializer *)

IMPORT_C voidSetDataSerializer(MXmlEngDataSerializer *aSerializer)

Sets a data serializer. Ownership of the data serializer is not transferred and the caller is responsbile for freeing aSerializer.

Parameters

MXmlEngDataSerializer * aSerializerThe data serializer to set

SetNodeFilter(MXmlEngNodeFilter *)

IMPORT_C voidSetNodeFilter(MXmlEngNodeFilter *aFilter)

Sets a node filter. The node filter is used to choose which nodes from the tree are serialized. Ownership of the node filter is not transferred and the caller is responsible for freeing aFilter.

Parameters

MXmlEngNodeFilter * aFilterThe node filter to set

Member Data Documentation

const TUint KOptionCDATASectionElements

const TUintKOptionCDATASectionElements[static]

Not supported

const TUint KOptionDecodeBinaryContainers

const TUintKOptionDecodeBinaryContainers[static]

Decode base64 encoded binary containers content upon XOP serialization

const TUint KOptionEncoding

const TUintKOptionEncoding[static]

Add encoding in xml declaration. KOptionOmitXMLDeclaration must not be set

const TUint KOptionIncludeNsPrefixes

const TUintKOptionIncludeNsPrefixes[static]

Not supported

const TUint KOptionIndent

const TUintKOptionIndent[static]

Use indent in output

const TUint KOptionOmitXMLDeclaration

const TUintKOptionOmitXMLDeclaration[static]

Skip xml declaration

const TUint KOptionStandalone

const TUintKOptionStandalone[static]

Add standalone in xml declaration. KOptionOmitXMLDeclaration must not be set

MXmlEngDataSerializer * iDataSerializer

MXmlEngDataSerializer *iDataSerializer

Data serializer

TPtrC8 iEncoding

TPtrC8 iEncoding

Encoding

MXmlEngNodeFilter * iNodeFilter

MXmlEngNodeFilter *iNodeFilter

Node filter

TUint iOptions

TUint iOptions

Options flag