News Update :

How to Create XML Files

Minggu, 13 Mei 2012

Creating XML files

XML documents should have a .xml file extension, and must have XML formatted data inside them in order for various software(programming languages) to read and parse them correctly.

If you use an advanced text editor like Dreamweaver, the editor will have the option to create a new blank XML file for you complete with the XML declaration in place already. Then you can simply place your XML elements into it, name it, save it, and have your programming language of choice parse the data inside it. It will have the correct file extension by default using this method.

If you happen to be using a basic text editor like notepad or wordpad, you can create a new blank document. Place your XML elements into the document, and save it with the .xml extension. So instead of it saving as a .txt file, you save it as a .xml file.

XML File Name Example: myFile.xml


A Wolf in Sheep's Clothing

PHP and other dynamic programming languages can use a header distinction that makes the software reading your XML file think the incoming data is an XML file, even though it is really a PHP file with XML structure. Knowing this we understand that XML structure can also be rendered by dynamic programming languages and fed into our XML driven applications.

Dynamic PHP XML File Name Example: myXMLfile.php
Share this Article on :

0 komentar:

 photo jadi2.gif
 

© Copyright chriscyber 2010 -2011 | Design by Cyber Indonesia | Published by Borneo Templates | Powered by Blogger.com.