TXmlEngTextNode Class Reference

#include <xml/dom/xmlengtext.h>

Link against: xmlenginedom.lib

class TXmlEngTextNode : public TXmlEngCharacterData

Inherits from

Public Member Functions
TXmlEngTextNode()
IMPORT_C TBoolIsElementContentWhitespace()
Protected Member Functions
TXmlEngTextNode(void *)
Inherited Attributes
TXmlEngNode::iInternal
Inherited Enumerations
TXmlEngNode:TXmlEngDOMNodeType
Inherited Functions
TXmlEngCharacterData::AppendContentsL(const TDesC8 &)
TXmlEngCharacterData::Contents()const
TXmlEngCharacterData::Length()const
TXmlEngCharacterData::SetContentsL(const TDesC8 &)
TXmlEngCharacterData::TXmlEngCharacterData()
TXmlEngCharacterData::TXmlEngCharacterData(void *)
TXmlEngNode::AddUserData(MXmlEngUserData *)
TXmlEngNode::AppendChildL(TXmlEngNode)
TXmlEngNode::AsAttr()const
TXmlEngNode::AsBinaryContainer()const
TXmlEngNode::AsCDATASection()const
TXmlEngNode::AsChunkContainer()const
TXmlEngNode::AsComment()const
TXmlEngNode::AsDataContainer()const
TXmlEngNode::AsDocumentFragment()const
TXmlEngNode::AsElement()const
TXmlEngNode::AsEntityReference()const
TXmlEngNode::AsFileContainer()const
TXmlEngNode::AsNamespace()const
TXmlEngNode::AsProcessingInstruction()const
TXmlEngNode::AsText()const
TXmlEngNode::BaseUriL(RBuf8 &)const
TXmlEngNode::CopyL()const
TXmlEngNode::CopyToL(TXmlEngNode)const
TXmlEngNode::DoUnlinkNode()
TXmlEngNode::FirstChild()const
TXmlEngNode::GetChildNodes(RXmlEngNodeList< TXmlEngNode > &)const
TXmlEngNode::HasAttributes()const
TXmlEngNode::HasChildNodes()const
TXmlEngNode::InnerXmlL(RBuf8 &)
TXmlEngNode::IsDefaultNamespaceL(const TDesC8 &)const
TXmlEngNode::IsNull()const
TXmlEngNode::IsSameNode(TXmlEngNode)const
TXmlEngNode::IsSimpleTextContents()const
TXmlEngNode::LastChild()const
TXmlEngNode::LinkBefore(TXmlEngNode)
TXmlEngNode::LookupNamespaceUriL(const TDesC8 &)const
TXmlEngNode::LookupPrefixL(const TDesC8 &)const
TXmlEngNode::MoveAfterSibling(TXmlEngNode)
TXmlEngNode::MoveBeforeSibling(TXmlEngNode)
TXmlEngNode::MoveTo(TXmlEngNode)
TXmlEngNode::MoveToL(TXmlEngNode)
TXmlEngNode::Name()const
TXmlEngNode::NamespaceDeclaration()const
TXmlEngNode::NamespaceUri()const
TXmlEngNode::NextSibling()const
TXmlEngNode::NodeType()const
TXmlEngNode::NotNull()const
TXmlEngNode::OuterXmlL(RBuf8 &)
TXmlEngNode::OwnerDocument()const
TXmlEngNode::ParentNode()const
TXmlEngNode::Prefix()const
TXmlEngNode::PreviousSibling()const
TXmlEngNode::ReconcileNamespacesL()
TXmlEngNode::Remove()
TXmlEngNode::RemoveUserData()
TXmlEngNode::ReplaceWith(TXmlEngNode)
TXmlEngNode::ReplaceWithL(TXmlEngNode)
TXmlEngNode::SetAsFirstSibling()
TXmlEngNode::SetAsLastSibling()
TXmlEngNode::SetValueL(const TDesC8 &)
TXmlEngNode::SubstituteForL(TXmlEngNode)
TXmlEngNode::TXmlEngNode()
TXmlEngNode::TXmlEngNode(void *)
TXmlEngNode::Unlink()
TXmlEngNode::UserData()const
TXmlEngNode::Value()const
TXmlEngNode::WholeTextContentsCopyL(RBuf8 &)const

Detailed Description

The TXmlEngTextNode class inherits from TXmlEngCharacterData and represents the textual content (termed "character data" in XML) of an Element or TXmlEngAttr.

If there is no markup inside an element's content, the text is contained in a single TXmlEngTextNode that is the only child of the element. If there is markup, it is parsed into the information items (elements, comments, etc.) and the TXmlEngTextNode nodes that form the list of children of the element.

When a document is first made available via the DOM, there is only one TXmlEngTextNode node for each block of text. Users may create adjacent TXmlEngTextNode nodes that represent the contents of a given element without any intervening markup, but should be aware that there is no way to represent the separations between these nodes in XML or HTML, so they will not (in general) persist between DOM editing sessions.

No lexical check is done on the content of a TXmlEngTextNode node and depending on its position in the document, some characters must be escaped during serialization using character references. For example, the characters "<&" if the textual content is part of an element or an attribute, the character sequence "]]>" when part of an element, the quotation mark character " or the apostrophe character ' when part of an attribute.

See also: http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-1312295772

Constructor & Destructor Documentation

TXmlEngTextNode ( )

TXmlEngTextNode()[inline]

Default constructor

TXmlEngTextNode ( void * )

TXmlEngTextNode(void *aInternal)[protected, inline]

Constructor

ParameterDescription
aInternalText node pointer

Member Function Documentation

IsElementContentWhitespace ( )

IMPORT_C TBoolIsElementContentWhitespace()const

Check if the element content is whitespace. Whitespace may be an empty element, or the characters space, tab, LF, or CR.

Returns: ETrue if the element content only contains whitespace, EFalse otherwise