当前位置: 首页 > 网络学院 > XML相关教程 > XML DOM > xml 属性
The xml property returns the XML of a node and its descendants.
xml属性可以返回XML的节点以及它的子节点
elementNode.xml |
Note: This property is Internet Explorer-only!
注意:这个属性只有在IE中才有效果!
In all examples, we will use the XML file books.xml, and the JavaScript function loadXMLDoc().
在所有的举例中,我们都将使用XML文档 books.xml,以及JS函数 loadXMLDoc()
The following code fragment displays the XML of the first <book> element in the XML document:
下面的代码段可以显示在XML文档中第一个<book>元素:
xmlDoc=loadXMLDoc("books.xml"); x=xmlDoc.getElementsByTagName("book")[0]; |
Output:
输出:
|
xml - Display the XML of an node
xml -可用来显示XML中的一个节点
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
吃惊 | 欠揍 | 支持 | 很棒 | 一般 | 搞笑 | 扯淡 | 不解 |