Jump to content

XML with attributes


jdz66

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.