XML DOM - DOM NodeList Object - DOM NodeList Object Method item - XML DOM

Explain the item methodof the NodeList Object

The indexth item of the collection is returned by the item method.


The syntax for using the item method is as follows:


node.xml contents are as below -

An XML document node.xml is parsed into an XML DOM object and each item of the node is displayed as


The file is saved as nodemethod_item.htm on the server path and this file should be on the same path as that of node.xml in the server. The output appears as follows:

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

XML DOM Topics