php如何写XML单标签
用PHP写XML节点都是成对的,但若想写单标签该怎么写呢?
例如: <?xml version=”1.0″ encoding=”gb2312″ ? >
# –
# –
对INFO我用createElement(”info”)可SUB呢 用什么?
——解决方案——————–
一样create本文来源[email protected]搞@^&代*@码)网9搞代gaodaima码Element,然后下面的都是addAttitube(忘了具体怎么拼写了,平时都是靠代码提示的)
——解决方案——————–
是自封闭
等价于