Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

DOM::CDATASection Class Reference

CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup. More...

#include <dom_xml.h>

Inheritance diagram for DOM::CDATASection:

DOM::Text DOM::CharacterData DOM::Node List of all members.

Public Methods

 CDATASection ()
 CDATASection (const CDATASection &other)
 CDATASection (const Node &other)
CDATASection & operator= (const Node &other)
CDATASection & operator= (const CDATASection &other)
 ~CDATASection ()

Protected Methods

 CDATASection (CDATASectionImpl *i)

Friends

class Document

Detailed Description

CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup.

The only delimiter that is recognized in a CDATA section is the "]]>" string that ends the CDATA section. CDATA sections can not be nested. The primary purpose is for including material such as XML fragments, without needing to escape all the delimiters.

The DOMString attribute of the Text node holds the text that is contained by the CDATA section. Note that this may contain characters that need to be escaped outside of CDATA sections and that, depending on the character encoding ("charset") chosen for serialization, it may be impossible to write out some characters as part of a CDATA section.

The CDATASection interface inherits the CharacterData interface through the Text interface. Adjacent CDATASections nodes are not merged by use of the Element.normalize() method.


Constructor & Destructor Documentation

DOM::CDATASection::CDATASection  
 

DOM::CDATASection::CDATASection const CDATASection &    other
 

DOM::CDATASection::CDATASection const Node   other [inline]
 

DOM::CDATASection::~CDATASection  
 

DOM::CDATASection::CDATASection CDATASectionImpl *    i [protected]
 


Member Function Documentation

CDATASection& DOM::CDATASection::operator= const Node   other
 

Reimplemented from DOM::Text.

CDATASection& DOM::CDATASection::operator= const CDATASection &    other
 


Friends And Related Function Documentation

friend class Document [friend]
 

Reimplemented from DOM::Text.


The documentation for this class was generated from the following file:
Generated on Sat Jan 31 23:28:26 2004 for XPath by doxygen1.2.18