Document

Document node

Constructors

this
this()
Undocumented in source.

Members

Functions

attrId
attr_id attrId(string s)

get id for attribute name

attrName
string attrName(ns_id id)

return name for attribute id

createElement
Element createElement(ns_id ns, elem_id tag)

create element node by namespace and tag ids

createElement
Element createElement(string ns, string tag)

create element node by namespace and tag names

createText
Text createText(dstring text)

create text node

nsId
ns_id nsId(string s)

get id for namespace name

nsName
string nsName(ns_id id)

return name for namespace id

tagId
elem_id tagId(string s)

get id for element tag name

tagName
string tagName(elem_id id)

return name for element tag id

Inherited Members

From Element

id
elem_id id [@property getter]

return element tag id

nsid
ns_id nsid [@property getter]

return element namespace id

attrCount
int attrCount [@property getter]

returns attribute count

attr
Attribute attr(int index)

get attribute by index

attr
Attribute attr(ns_id nsid, attr_id attrid)

get attribute by namespace and attribute ids

attr
Attribute attr(string nsname, string attrname)

get attribute by namespace and attribute names

setAttr
Attribute setAttr(ns_id nsid, attr_id attrid, string value)

set attribute value by namespace and attribute ids

setAttr
Attribute setAttr(string nsname, string attrname, string value)

set attribute value by namespace and attribute names

attrValue
string attrValue(ns_id nsid, attr_id attrid)

get attribute value by namespace and attribute ids

attrValue
string attrValue(string nsname, string attrname)

get attribute value by namespace and attribute ids

childCount
int childCount [@property getter]

returns child node count

child
int child [@property setter]

returns child node by index

firstChild
Node firstChild [@property getter]

returns first child node

lastChild
Node lastChild [@property getter]

returns last child node

childIndex
int childIndex(Node child)

find child node, return its index if found, -1 if not found or not child of this node

appendText
Node appendText(dstring s, int index)

append text child

appendElement
Node appendElement(ns_id ns, elem_id tag, int index)

append element child - by namespace and tag ids

appendElement
Node appendElement(string ns, string tag, int index)

append element child - by namespace and tag names

Meta