This article mainly introduces the attributes of xml tags for getting started with xml for php operations, and analyzes the basic attributes and usage of xml tags, for more information about the attributes of xml labels for getting started with php operations, see the example in this article. Share it with you for your reference. The specific analysis is as follows:
The code is as follows:
<? Xml version = "1.0" encoding = "UTF-8" standalone = "yes"?>
Xiaoqiao
Female
23
Zhou Yu
Male
26
For example, id = "No001" in the case ".
Note:
(1) attribute values must be separated by single or double quotation marks;
(2) an xml tag can have multiple attributes;
(3) attribute values cannot contain <,>, and & symbols. If an attribute is to appear, use the predefined entity reference in xml. There are five:
(4) you cannot use the same attribute name in the same tag. if you already have id = "No001", you cannot use id = "No002 ".
(5) annotation method:
I hope this article will help you with the XML programming for php operations.