php怎么写XML单标签

WBOY
Release: 2016-06-13 13:12:47
Original
864 people have browsed it

php如何写XML单标签
用PHP写XML节点都是成对的,但若想写单标签该怎么写呢?

例如:
# -
# -



对INFO我用createElement("info")可SUB呢 用什么?

------解决方案--------------------
一样createElement,然后下面的都是addAttitube(忘了具体怎么拼写了,平时都是靠代码提示的)
------解决方案--------------------
是自封闭
等价于

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn