jdz66 Posted May 19, 2013 Share Posted May 19, 2013 Kindly check the website for XML Tutorials : XML blank-emplty Attrib.xmlXML blank-emplty Attrib.xml http://techgobind.blogspot.in/2012/08/generate-xml-from-mysql-database-via-php.html Working Perfectly.But Instead of showing XML in browser I wanted to save this output as XML file on server.Also if any attributes are empty it should not be shown.Kindly give idea/tips. Link to comment https://forums.phpfreaks.com/topic/278159-xml-with-attributes/ Share on other sites More sharing options...
cpd Posted May 19, 2013 Share Posted May 19, 2013 You've got poorly chosen tag and attribute names there. Rethink the mark-up. If you want to save the document I suggest you use the SimpleXML object as it contains a save method. Link to comment https://forums.phpfreaks.com/topic/278159-xml-with-attributes/#findComment-1430945 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.