[eluser]hazy[/eluser]
What should be very straight-forward seems to have got hard :{
I want to create an XML document in my controller ultimately to populate a YUI data grid. So I start with this code:
Code:
$doc = new DomDocument("1.0");
...
$xml_string = $doc->saveXML();
And it falls over with this error:
Quote:Message: domdocument::domdocument() [function.domdocument-domdocument]: Entity: line 1: parser error : Start tag expected, '<' not found
Any thoughts on what I'm doing wrong or suggestions for a new approach gratefully received!
Cheers
John