Gets the name of this element.
Sets the name of this element.
Returns true if the specified nodes are all character references, entity references, or character data.
Adds an attribute to this element and returns the new attribute.
Adds a CDATA section to this element and returns the new CDATA section.
Adds character data to this element and returns the new character data.
Adds a character reference to this element and returns the new character reference.
Adds a comment to this element and returns the new comment.
Adds an element to this element and returns the new element.
Adds an entity reference to this element and returns the new entity reference.
Adds a processing instruction to this element and returns the new processing instruction.
Returns an XML string representation of this element using the specified options.
Returns an XML string representation of this element using the specified options and initial indent.
Returns the parent of this element.
Generated using TypeDoc
Represents an XML element.
A sample element is structured as follows, where
{name}
is the name of the element:<{name} attname="attvalue"> <subelem/> <?pitarget picontent?> text </{name}></pre>
XML elements can have an unlimited number of attributes, CDATA sections, character references, comments, elements, entity references, processing instructions, and character data.
An element with no content will be represented using an empty element tag:
<{name}/>