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

WBOY
Release: 2016-06-13 11:39:10
Original
1143 people have browsed it

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

xml->addChild()

xml->addAttribute()
神马的,

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

看和要疯啊,太乱拉。

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

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template