Xml learning (2) xml document tree structure

Source: Internet
Author: User
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 )!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.