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...
Mass Article Control #1 Create Thousands Of Articles From only 1 Article and Have them Submitted Automatically With A brand New Submitter!
iPowerWeb

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