AnewtXMLDomRaw class

Raw text DOM node.

Class Overview

Raw text DOM node.

This is an Anewt-specific extension class that allows one to use strings containing XML snippets (that are assumed to be well-formed) as nodes in a DOM tree. Example usage: preformatted XHTML stuff, or snippets of XML generated by other code (e.g. by text-to-markup convertors).

Public Methods

__construct($data)

Construct a new AnewtXMLDomRaw node.

Don't call this method directly, use Document::create_raw_node instead.

Parameters

$data

The data for this node

render()

Render this node to a string.

Return value

Rendered string with XML data.

Public Attributes

$node_name

The name of this node, depending on its type.

Inheritance

Base Classes

Inherited members