xmlengutils.h File Reference

XmlEngEscapeForXmlValueL ( const char * )

IMPORT_C char *XmlEngEscapeForXmlValueL(const char *aUnescapedString)

Converts a xml string that may contains entities to a xml string with entity references, i.e. "t>x" -> "t>x"

Parameters
aUnescapedStringThe string to escape
Return Value
The escaped string. Ownership is transferred to the caller. The returned string should be freed with free().
Leave Codes
KErrNoMemoryMemory allocation error

XmlEngXmlCharFromDesL ( const TDesC & )

IMPORT_C char *XmlEngXmlCharFromDesL(const TDesC &aDes)

Convert a UTF-16 descriptor into a UTF-8 zero-terminated string

Parameters
aDesThe descriptor to convert
Return Value
The returned string. Ownership is transferred to the caller. The returned string should be freed with delete.
Leave Codes
KErrNoMemoryMemory allocation error

XmlEngXmlCharFromDes8L ( const TDesC8 & )

IMPORT_C char *XmlEngXmlCharFromDes8L(const TDesC8 &aDes)

Convert a TDesC8 descriptor with UTF-8 characters into a UTF-8 zero-terminated string.

Parameters
aDesThe descriptor to convert
Return Value
The returned string. Ownership is transferred to the caller. The returned string should be freed with delete.
Leave Codes
KErrNoMemoryMemory allocation error