Home  >  Article  >  Backend Development  >  SimpleXML中处置XML后asXML('file.xml')保存的文件,没有格式排版么?一行看着是天书

SimpleXML中处置XML后asXML('file.xml')保存的文件,没有格式排版么?一行看着是天书

WBOY
WBOYOriginal
2016-06-13 12:34:12984browse

SimpleXML中处理XML后asXML('file.xml')保存的文件,没有格式排版么?一行看着是天书啊
SimpleXML中构建一个xml文件,

xml->addChild()

xml->addAttribute()
神马的,

存盘时候 xml->asXML('file.xml');形成的xml文件,全在一行显示啊,

看和要疯啊,太乱拉。

他不能自动换行,缩进啥的吗?

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