我需要在PHP中使用DOM为XML文件添加一个自动关闭标记,但我不知道如何,因为标准地说,这个标记看起来像这样:
<tag></tag>
但它应该是这样的:
<tag/>
php xml dom
dom ×1
php ×1
xml ×1