Dom
Document
Iface
constructor
parent_
iface
name
adopt_
node
create_
comment
create_
document_
fragment
create_
element
create_
element_
ns
create_
event
create_
node_
iterator
create_
processing_
instruction
create_
range
create_
text_
node
create_
tree_
walker
get_
character_
set
get_
compat_
mode
get_
content_
type
get_
doctype
get_
document_
element
get_
document_
uri
get_
elements_
by_
class_
name
get_
elements_
by_
tag_
name
get_
elements_
by_
tag_
name_
ns
get_
implementation
get_
origin
get_
url
import_
node
GJS API Reference
GXml-0.14
GXml
DomDocumentIface
Class DomDocumentIface
Hierarchy
DomDocumentIface
Index
Constructors
constructor
Properties
parent_
iface
name
Methods
adopt_
node
create_
comment
create_
document_
fragment
create_
element
create_
element_
ns
create_
event
create_
node_
iterator
create_
processing_
instruction
create_
range
create_
text_
node
create_
tree_
walker
get_
character_
set
get_
compat_
mode
get_
content_
type
get_
doctype
get_
document_
element
get_
document_
uri
get_
elements_
by_
class_
name
get_
elements_
by_
tag_
name
get_
elements_
by_
tag_
name_
ns
get_
implementation
get_
origin
get_
url
import_
node
Constructors
constructor
new
Dom
Document
Iface
(
)
:
GXml
.
DomDocumentIface
Returns
GXml
.
DomDocumentIface
Properties
parent_
iface
parent_
iface
:
TypeInterface
Static
name
name
:
string
Methods
adopt_
node
adopt_
node
(
self
:
GXml
.
DomDocument
, node
:
GXml
.
DomNode
)
:
GXml
.
DomNode
Parameters
self:
GXml
.
DomDocument
node:
GXml
.
DomNode
Returns
GXml
.
DomNode
create_
comment
create_
comment
(
self
:
GXml
.
DomDocument
, data
:
string
)
:
GXml
.
DomComment
Parameters
self:
GXml
.
DomDocument
data:
string
Returns
GXml
.
DomComment
create_
document_
fragment
create_
document_
fragment
(
self
:
GXml
.
DomDocument
)
:
GXml
.
DomDocumentFragment
Parameters
self:
GXml
.
DomDocument
Returns
GXml
.
DomDocumentFragment
create_
element
create_
element
(
self
:
GXml
.
DomDocument
, local_name
:
string
)
:
GXml
.
DomElement
Parameters
self:
GXml
.
DomDocument
local_name:
string
Returns
GXml
.
DomElement
create_
element_
ns
create_
element_
ns
(
self
:
GXml
.
DomDocument
, namespace
:
string
, qualified_name
:
string
)
:
GXml
.
DomElement
Parameters
self:
GXml
.
DomDocument
namespace:
string
qualified_name:
string
Returns
GXml
.
DomElement
create_
event
create_
event
(
self
:
GXml
.
DomDocument
, interface
:
string
)
:
GXml
.
DomEvent
Parameters
self:
GXml
.
DomDocument
interface:
string
Returns
GXml
.
DomEvent
create_
node_
iterator
create_
node_
iterator
(
self
:
GXml
.
DomDocument
, root
:
GXml
.
DomNode
, whatToShow
:
number
, filter
?:
GXml
.
DomNodeFilter
)
:
GXml
.
DomNodeIterator
Parameters
self:
GXml
.
DomDocument
root:
GXml
.
DomNode
whatToShow:
number
Optional
filter:
GXml
.
DomNodeFilter
Returns
GXml
.
DomNodeIterator
create_
processing_
instruction
create_
processing_
instruction
(
self
:
GXml
.
DomDocument
, target
:
string
, data
:
string
)
:
GXml
.
DomProcessingInstruction
Parameters
self:
GXml
.
DomDocument
target:
string
data:
string
Returns
GXml
.
DomProcessingInstruction
create_
range
create_
range
(
self
:
GXml
.
DomDocument
)
:
GXml
.
DomRange
Parameters
self:
GXml
.
DomDocument
Returns
GXml
.
DomRange
create_
text_
node
create_
text_
node
(
self
:
GXml
.
DomDocument
, data
:
string
)
:
GXml
.
DomText
Parameters
self:
GXml
.
DomDocument
data:
string
Returns
GXml
.
DomText
create_
tree_
walker
create_
tree_
walker
(
self
:
GXml
.
DomDocument
, root
:
GXml
.
DomNode
, what_to_show
:
number
, filter
?:
GXml
.
DomNodeFilter
)
:
GXml
.
DomTreeWalker
Parameters
self:
GXml
.
DomDocument
root:
GXml
.
DomNode
what_to_show:
number
Optional
filter:
GXml
.
DomNodeFilter
Returns
GXml
.
DomTreeWalker
get_
character_
set
get_
character_
set
(
self
:
GXml
.
DomDocument
)
:
string
Parameters
self:
GXml
.
DomDocument
Returns
string
get_
compat_
mode
get_
compat_
mode
(
self
:
GXml
.
DomDocument
)
:
string
Parameters
self:
GXml
.
DomDocument
Returns
string
get_
content_
type
get_
content_
type
(
self
:
GXml
.
DomDocument
)
:
string
Parameters
self:
GXml
.
DomDocument
Returns
string
get_
doctype
get_
doctype
(
self
:
GXml
.
DomDocument
)
:
GXml
.
DomDocumentType
Parameters
self:
GXml
.
DomDocument
Returns
GXml
.
DomDocumentType
get_
document_
element
get_
document_
element
(
self
:
GXml
.
DomDocument
)
:
GXml
.
DomElement
Parameters
self:
GXml
.
DomDocument
Returns
GXml
.
DomElement
get_
document_
uri
get_
document_
uri
(
self
:
GXml
.
DomDocument
)
:
string
Parameters
self:
GXml
.
DomDocument
Returns
string
get_
elements_
by_
class_
name
get_
elements_
by_
class_
name
(
self
:
GXml
.
DomDocument
, classNames
:
string
)
:
GXml
.
DomHTMLCollection
Parameters
self:
GXml
.
DomDocument
classNames:
string
Returns
GXml
.
DomHTMLCollection
get_
elements_
by_
tag_
name
get_
elements_
by_
tag_
name
(
self
:
GXml
.
DomDocument
, local_name
:
string
)
:
GXml
.
DomHTMLCollection
Parameters
self:
GXml
.
DomDocument
local_name:
string
Returns
GXml
.
DomHTMLCollection
get_
elements_
by_
tag_
name_
ns
get_
elements_
by_
tag_
name_
ns
(
self
:
GXml
.
DomDocument
, namespace
:
string
, local_name
:
string
)
:
GXml
.
DomHTMLCollection
Parameters
self:
GXml
.
DomDocument
namespace:
string
local_name:
string
Returns
GXml
.
DomHTMLCollection
get_
implementation
get_
implementation
(
self
:
GXml
.
DomDocument
)
:
GXml
.
DomImplementation
Parameters
self:
GXml
.
DomDocument
Returns
GXml
.
DomImplementation
get_
origin
get_
origin
(
self
:
GXml
.
DomDocument
)
:
string
Parameters
self:
GXml
.
DomDocument
Returns
string
get_
url
get_
url
(
self
:
GXml
.
DomDocument
)
:
string
Parameters
self:
GXml
.
DomDocument
Returns
string
import_
node
import_
node
(
self
:
GXml
.
DomDocument
, node
:
GXml
.
DomNode
, deep
:
boolean
)
:
GXml
.
DomNode
Parameters
self:
GXml
.
DomDocument
node:
GXml
.
DomNode
deep:
boolean
Returns
GXml
.
DomNode
Dom
Document
Iface
constructor
parent_
iface
name
adopt_
node
create_
comment
create_
document_
fragment
create_
element
create_
element_
ns
create_
event
create_
node_
iterator
create_
processing_
instruction
create_
range
create_
text_
node
create_
tree_
walker
get_
character_
set
get_
compat_
mode
get_
content_
type
get_
doctype
get_
document_
element
get_
document_
uri
get_
elements_
by_
class_
name
get_
elements_
by_
tag_
name
get_
elements_
by_
tag_
name_
ns
get_
implementation
get_
origin
get_
url
import_
node
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHWG1sXzBfMTQuR1htbC5Eb21Eb2N1bWVudElmYWNlLmh0bWwjY29uc3RydWN0b3IiLCJuYW1lIjoiY29uc3RydWN0b3IiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZSwiaXNJbnRlcm4iOnRydWV9LHsiY2xhc3NOYW1lcyI6InRzZC1raW5kLXByb3BlcnR5IHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHWG1sXzBfMTQuR1htbC5Eb21Eb2N1bWVudElmYWNlLmh0bWwjcGFyZW50X2lmYWNlIiwibmFtZSI6InBhcmVudF9pZmFjZSIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hbWVzIjoidHNkLWtpbmQtcHJvcGVydHkgdHNkLXBhcmVudC1raW5kLWNsYXNzIHRzZC1pcy1zdGF0aWMiLCJocmVmIjoiR1htbF8wXzE0LkdYbWwuRG9tRG9jdW1lbnRJZmFjZS5odG1sI25hbWUiLCJuYW1lIjoibmFtZSIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hbWVzIjoidHNkLWtpbmQtbWV0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