TXmlEngCharacterData Class Reference

Link against: xmlengineDOM.lib


#include <
xmlengcharacterdata.h>

Inherits TXmlEngNode.

Inherited by TXmlEngComment, and TXmlEngTextNode.


Detailed Description

Instance of TXmlEngCharacterData class represents all kinds of XML text nodes (i.e.

text node, comment node) in the DOM tree.

Describe DOM action for nodes that contains text data. DOM spec: http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-FF21A306

Dll XmlEngineDOM.lib
Since:
S60 v3.1

Public Member Functions

IMPORT_C TPtrC8 Contents () const
 Get content of the node.
IMPORT_C void SetContentsL (const TDesC8 &aNewContents)
 Sets contents of basic character nodes: TXmlEngTextNode, TXmlEngComment, TXmlEngCDATASection.
IMPORT_C void AppendContentsL (const TDesC8 &aString)
 Extends the contents of the node by appending aString.
IMPORT_C TUint Length () const
 Get length of the content.

Protected Member Functions

 TXmlEngCharacterData ()
 Default constructor.
 TXmlEngCharacterData (void *aInternal)
 Constructor.

Constructor & Destructor Documentation

TXmlEngCharacterData::TXmlEngCharacterData  )  [inline, protected]
 

Default constructor.

Since:
S60 v3.1
TXmlEngCharacterData::TXmlEngCharacterData void aInternal  )  [inline, protected]
 

Constructor.

Since:
S60 v3.1
Parameters:
aInternal node pointer

Member Function Documentation

IMPORT_C void TXmlEngCharacterData::AppendContentsL const TDesC8 &  aString  ) 
 

Extends the contents of the node by appending aString.

Since:
S60 v3.1
Parameters:
aString Content to be added to current content
IMPORT_C TPtrC8 TXmlEngCharacterData::Contents  )  const
 

Get content of the node.

Since:
S60 v3.1
Returns:
String with nodes content
This method applies to TXmlEngCDATASection, TXmlEngComment and TXmlEngTextNode nodes.
IMPORT_C TUint TXmlEngCharacterData::Length  )  const
 

Get length of the content.

Since:
S60 v3.1
Returns:
Number of characters in the contents
IMPORT_C void TXmlEngCharacterData::SetContentsL const TDesC8 &  aNewContents  ) 
 

Sets contents of basic character nodes: TXmlEngTextNode, TXmlEngComment, TXmlEngCDATASection.

Since:
S60 v3.1
Parameters:
aNewContents The actual value to store
The input is taken as non-escaped: for example, aNewContents = "123 > 34 && P" will be serialized as "123 &gt; 34 &amp;&amp; P"

Escaped contents may be set only for TXmlEngElement and TXmlEngAttr nodes.

See also:
TXmlEngAttr::SetEscapedValueL(const TDesC8&), TXmlEngElement::SetEscapedTextL(const TDesC8&),

The documentation for this class was generated from the following files:

Copyright © Nokia Corporation 2001-2007
Back to top