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.