XML DOM baseURI Property
Node object
Definition and Usage
The baseURI property returns the absolute base URI of a node.
Syntax
nodeObject.baseURI
Example
The following code snippet uses loadXMLDoc() to load "books_ns.xml" Load into xmlDoc, and return the
Example
xmlDoc
=
loadXMLDoc
(
"
books_ns.xml
"
)
;
x
=
xmlDoc
.
getElementsByTagName
(
'
title
'
)
;
for
(
i
=
0
;
i
<
x
.
length
;
i
++
)
{
document
.
write
(
x
.
item
(
i
)
.
baseURI
)
;
document
.
write
(
"
"
)
;
}
Try it »
Node object