This article mainly introduces the attributes of xml tags for getting started with xml operations in php, and analyzes the basic attributes and usage of xml tags. For more information, see
This article mainly introduces the attributes of xml tags for getting started with xml operations in php, and analyzes the basic attributes and usage of xml tags. For more information, see
This article describes the attributes of xml labels for getting started with php xml operations. 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
Attribute writing, such as 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) The same attribute name cannot appear in the same tag. if it already exists, no id = "No002" is available ".
(5) annotation method:
I hope this article will help you with the XML programming for php operations.