Create xml in php and format the xml in DOMDocument. set $ dom-& gt; formatOutput & nbsp; true; however, only the first-level node under the root node is formatted, and the child node under the first-level node is not (). What I want is to format the output of the entire xml file (): php creates the xml file and formats the output.
DOMDocument creates xml and sets $ dom-> formatOutput to true. However, only the first-level node under the root node is created and formatted, the subnode under the first-level node does not (). What I want is that the entire xml file is formatted and output ()
:
:
Share To: formatOutput? =? True; but only the first node under the root node is formatted, and the child node under the first node is not ().... 'Data-pics = '/img/2013/07/01/125924297 .png |/img/2013/07/01/125924298 .png'>
------ Solution --------------------
Paste your code.
------ Solution --------------------
Use tidy
This is the gospel of html/xml. it is worthwhile to take some time to understand it.