Format output of $SimpleXML->asXML();
The question: The title pretty much says it all. If I have something like (from PHP site examples): $xmlstr = <<<XML <?xml version=’1.0′ standalone=’yes’?> <movies></movies> XML; $sxe = new SimpleXMLElement($xmlstr); $sxe->addAttribute(‘type’, ‘documentary’); $movie = $sxe->addChild(‘movie’); $movie->addChild(‘title’, ‘PHP2: More Parser Stories’); $movie->addChild(‘plot’, ‘This is all about the people who make it work.’); $characters = $movie->addChild(‘characters’); $character … Read more