id in Xml DOM
Posted: Thu Dec 28, 2006 8:51 pm
Hi there.
How can i use the getElementsbyId method? Actually what i need to know is how to specify the id of the elements in the xml document?
Add an attribute "id" = 3 for example??
Moreover how do i get the data of a tag?
what i do is for to get the first node for example but it doesnt give any data on the X variable.
Thanks
How can i use the getElementsbyId method? Actually what i need to know is how to specify the id of the elements in the xml document?
Add an attribute "id" = 3 for example??
Moreover how do i get the data of a tag?
what i do is for
Code: Select all
var X = root.getElementsByTagName("Territory")[0].data;Thanks