Options
All
  • Public
  • Public/Protected
  • All
Menu

Class XmlElement<Parent>

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}/>

Type parameters

  • Parent

Hierarchy

  • XmlElement

Index

Constructors

constructor

Accessors

name

  • get name(): string
  • set name(name: string): void

Methods

attribute

cdata

charData

charRef

comment

element

entityRef

procInst

toString

up

  • up(): Parent

Generated using TypeDoc