1, document.getElementById (' id ') always forget to add the document.
2, document.getElementsByTagName (' tagname ') Similarly, returns the collection of objects with the specified tag name
And this is a getelementsbytagname in the middle of an S, because the return is a collection,
3, Document.createelement (' tr '); Create a TR element
4. If this is the case
<User>
<ID>1</ID>
<username>1</username>
<Password>77</Password>
<Photo>Ddd</Photo>
</User>
<User>
<ID>2</ID>
<username>Huo</username>
<Password>123</Password>
<Photo>Eee</Photo>
</User>
Xml.getelementsbytagname (' user ') [0] represents the first <user> this element
Xml.getelementsbytagname (' user ') [0].childnodes[0] represents the <id> element
Xml.getelementsbytagname (' user ') [0].childnodes[0].childnodes[0] represents a text node
Xml.getelementsbytagname (' user ') [0].childnodes[0].childnodes[0].nodevalue means getting text information
Ajax in some of their own easy to write the wrong code &