php simplexml without xml declaration tag



I use SimpleXML to generate XML. When I use :



new SimpleXMLElement('<row></row>');


SimpleXML generates this XML :



<?xml version="1.0"?>\n<row/>


But I need only :



<row/>


I need only it because I will include it to another XML.


How can I generate only row tag in an SimpleXML Object ?


No comments:

Post a Comment