XML concise tutorial lesson 1st: Processing XML elements

Source: Internet
Author: User
What is an XML element? XML is an identification language. it is a set of rules used to create syntax labels for describing data. An XML element consists of the start tag, end tag, and data between tags. The start and end tags are used to describe the XML elements between tags?
XML is an identification language. it is a set of rules used to create syntax labels for describing data. An XML element is
The data between the start tag, end tag, and tag. The start and end tags are used to describe the number between tags.
Data. Data between tags is considered the value of an element. For example, in the following XML element example, the element 'di
The rector 'value is 'Ed Wood '.
Ed Wood  
The element name ('ctor ctor ') promises you to mark the value 'Ed Wood' so that you can mark the data
Similar data zone departure. For example, the value of another element may be 'Ed '.
Ed Wood 
Since each element has different tag names, you can easily differentiate the values of the above two elements. Assume that
In terms of semantics, there is no way to mark the data. two elements with the same value will be mixed up.

Attribute
An element can contain one or more attributes. an attribute is a name value separated by "=", for example:
Westfield 
In the preceding example, ZIP = '000000' is an element. . Attribute is used to add an additional element.
The secondary information is usually metadata. the default value can also be applied to attributes, but the element cannot. Element
Each attribute can be clarified in any order, but only once.
In addition, XML labels are case sensitive, so the following three elements are different.



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.