Home  >  Article  >  Backend Development  >  php怎么写XML单标签

php怎么写XML单标签

WBOY
WBOYOriginal
2016-06-13 10:48:141148browse

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

例如:
# -
# -
 
 

 

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

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

Statement:
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