TXmlEngSerializationOptions Class Reference

#include <xml/dom/xmlengserializationoptions.h>

class TXmlEngSerializationOptions

Detailed Description

This class stores serialization options to be used when a document is serialized.

See also: RXmlEngDocument::SaveL()

Member Attribute Documentation

KOptionCDATASectionElements

const TUintKOptionCDATASectionElements[static]

Not supported

KOptionDecodeBinaryContainers

const TUintKOptionDecodeBinaryContainers[static]

Decode base64 encoded binary containers content upon XOP serialization

KOptionEncoding

const TUintKOptionEncoding[static]

Add encoding in xml declaration. KOptionOmitXMLDeclaration must not be set

KOptionIncludeNsPrefixes

const TUintKOptionIncludeNsPrefixes[static]

Not supported

KOptionIndent

const TUintKOptionIndent[static]

Use indent in output

KOptionOmitXMLDeclaration

const TUintKOptionOmitXMLDeclaration[static]

Skip xml declaration

KOptionStandalone

const TUintKOptionStandalone[static]

Add standalone in xml declaration. KOptionOmitXMLDeclaration must not be set

iDataSerializer

MXmlEngDataSerializer *iDataSerializer

Data serializer

iEncoding

TPtrC8 iEncoding

Encoding

iNodeFilter

MXmlEngNodeFilter *iNodeFilter

Node filter

iOptions

TUint iOptions

Options flag

Constructor & Destructor Documentation

TXmlEngSerializationOptions ( TUint, const TDesC8 & )

Constructor

Parameters
aOptionFlagsSerialization options
aEncodingSerialization encoding. If KNullDesC8, the document encoding is used.

Member Function 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
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
aFilterThe node filter to set