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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.