Chapter 49. libxmldom1
DOMDocument
Description
Type Tags
DOMNode
Object Value
Objects of type DOMDocument have no value, and it is an error to try to get or set this value.
DOMDocument.new()
Description
Prototype
DOMDocument
.new
()
Parameters
None
Properties
Property | Type | Description |
---|---|---|
_docprivate | LIBXMLDocumentPrivate | |
_node | DOMNode | |
createAttribute | function | |
createAttributeNS | function | |
createCDATASection | function | |
createComment | function | |
createDocumentFragment | function | |
createElement | function | |
createElementNS | function | |
createEntityReference | function | |
createProcessingInstruction | function | |
createTextNode | function | |
getDoctype | function | |
getDocumentElement | function | |
getDocumentURI | function | |
getElementById | function | |
getElementsByTagName | function | |
getElementsByTagNameNS | function | |
getImplementation | function | |
getXmlEncoding | function | |
getXmlStandalone | function | |
getXmlVersion | function | |
importNode | function | |
saveHTMLFile | function | |
saveXMLFile | function | |
setDebugMode | function | |
setDocumentURI | function | |
setXmlStandalone | function | |
setXmlVersion | function | |
type | type | |
validate | function |
Methods
createAttribute()
Description
Prototype
DOMDocumentvar
.createAttribute
(
DOMDocument
,
string me
)
name
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
name | None | string |
createAttributeNS()
Description
Prototype
DOMDocumentvar
.createAttributeNS
(
DOMDocument
,
string me
,
string namespaceURI
)
qualifiedName
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
namespaceURI | None | string | |
qualifiedName | None | string |
createCDATASection()
Description
Prototype
DOMDocumentvar
.createCDATASection
(
DOMDocument
,
string me
)
data
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
data | None | string |
createComment()
Description
Prototype
DOMDocumentvar
.createComment
(
DOMDocument
,
string me
)
data
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
data | None | string |
createDocumentFragment()
Description
Prototype
DOMDocumentvar
.createDocumentFragment
(
DOMDocument
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument |
createElement()
Description
Prototype
DOMDocumentvar
.createElement
(
DOMDocument
,
string me
)
tagName
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
tagName | None | string |
createElementNS()
Description
Prototype
DOMDocumentvar
.createElementNS
(
DOMDocument
,
string me
,
string namespaceURI
)
qualifiedName
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
namespaceURI | None | string | |
qualifiedName | None | string |
createEntityReference()
Description
Prototype
DOMDocumentvar
.createEntityReference
(
DOMDocument
,
string me
)
data
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
data | None | string |
createProcessingInstruction()
Description
Prototype
DOMDocumentvar
.createProcessingInstruction
(
DOMDocument
,
string me
,
string target
)
data
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
target | None | string | |
data | None | string |
createTextNode()
Description
Prototype
DOMDocumentvar
.createTextNode
(
DOMDocument
,
string me
)
data
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
data | None | string |
getDoctype()
Description
Prototype
DOMDocumentvar
.getDoctype
(
DOMDocument
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument |
getDocumentElement()
Description
Prototype
DOMDocumentvar
.getDocumentElement
(
DOMDocument
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument |
getDocumentURI()
Description
Prototype
DOMDocumentvar
.getDocumentURI
(
DOMDocument
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument |
getElementById()
Description
Prototype
DOMDocumentvar
.getElementById
(
DOMDocument
,
string me
)
elementId
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
elementId | None | string |
getElementsByTagName()
Description
Prototype
DOMDocumentvar
.getElementsByTagName
(
DOMDocument
,
string me
)
tagname
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
tagname | None | string |
getElementsByTagNameNS()
Description
Prototype
DOMDocumentvar
.getElementsByTagNameNS
(
DOMDocument
,
string me
,
string namespaceURI
)
localName
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
namespaceURI | None | string | |
localName | None | string |
getImplementation()
Description
Prototype
DOMDocumentvar
.getImplementation
(
DOMDocument
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument |
getXmlEncoding()
Description
Prototype
DOMDocumentvar
.getXmlEncoding
(
DOMDocument
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument |
getXmlStandalone()
Description
Prototype
DOMDocumentvar
.getXmlStandalone
(
DOMDocument
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument |
getXmlVersion()
Description
Prototype
DOMDocumentvar
.getXmlVersion
(
DOMDocument
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument |
importNode()
Description
Prototype
DOMDocumentvar
.importNode
(
DOMDocument
,
type(DOMNode) me
,
boolean importedNode
)
deep
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
importedNode | None | type(DOMNode) | |
deep | None | boolean |
saveHTMLFile()
Description
Prototype
DOMDocumentvar
.saveHTMLFile
(
DOMDocument
,
string me
,
boolean filePath
,
string format
)
encoding
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
filePath | None | string | |
format | .true | boolean | |
encoding | None | string |
saveXMLFile()
Description
Prototype
DOMDocumentvar
.saveXMLFile
(
DOMDocument
,
string me
,
boolean filePath
,
string format
)
encoding
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
filePath | None | string | |
format | .true | boolean | |
encoding | None | string |
setDebugMode()
Description
Prototype
DOMDocumentvar
.setDebugMode
(
DOMDocument
,
boolean me
)
debugMode
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
debugMode | None | boolean |
setDocumentURI()
Description
Prototype
DOMDocumentvar
.setDocumentURI
(
DOMDocument
,
string me
)
documentURI
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
documentURI | None | string |
setXmlStandalone()
Description
Prototype
DOMDocumentvar
.setXmlStandalone
(
DOMDocument
,
boolean me
)
xmlStandalone
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
xmlStandalone | None | boolean |
setXmlVersion()
Description
Prototype
DOMDocumentvar
.setXmlVersion
(
DOMDocument
,
string me
)
xmlVersion
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
xmlVersion | None | string |
validate()
Description
Prototype
DOMDocumentvar
.validate
(
DOMDocument
,
string me
)
outputInfo
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | DOMDocument | |
outputInfo | None | string |