XML documents form a tree structure. XML documents must contain root elements. This element is the parent element of all other elements. The elements in the XML document form a document tree. The tree starts from the root and expands to the bottom of the tree. All elements can have child elements: XML documents form a tree structure
The XML document must containRoot element. This element is the parent element of all other elements.
The elements in the XML document form a document tree. The tree starts from the root and expands to the bottom of the tree.
All elements can have child elements:
.....
Represents a book in the following XML:
Everyday Italian Giada De Laurentiis
2005
30.00
Harry Potter J K. Rowling
2005
29.99
Learning XML Erik T. Ray
2003
39.95
In this example, the root element is . All All elements are included in .
The element has four child elements: , <Author>, , .
The above is the xml learning (2) content of the xml document tree structure. For more information, see PHP Chinese network (www.php1.cn )!