I am using SimpleXML to generate XML. When i use:
new SimpleXMLElement('<row></row>');
SimpleXML generates this XML:
<?xml version="1.0"?>\n<row/>
But I only need:
<row/>
I only need this because I will include it in another XML.
How can I only generate a string tag in a SimpleXML object?
source share