Simple XML parser
Copy and paste the following code into your editor and run it (code comments are included). If you want to see the live result (we believe this is the best way to learn what is the script about), try it here (new window). The example xml file which is ISO-8859-1 encoded This example reads an xml file and parses it to extract and layout desired dataset encoded in UTF-8. download the file The source code The parser. download the file - you need to have PHP 4 or above version of Php;
- you may call any remote xml/rss/atom files, but you need to know about the structure and tag names of the file.
You may wish to read additional materials from:
- function.xml-parser-create
- function.xml-set-element-handler
- function.xml-set-character-data-handler.php
- function.xml-parse.php
- php.net/global
Post a comment
|
Webmaster Corner
The ClickBnk Code
Another Killer Product From Michael Jones, simply follow the Blueprint For Easy Online Wealth Using Click Bank...
Twitter Traffic Machine The Automated Growth & Money Making System from growing A Twitter Account Rapidly W/total Automation Via 5 Videos!
iPowerWeb

Incredible Membership Packages - Web Hosting!
→ Maverick Money Makers - Get Paid For Life!
|
Categories
|