Written by: Robert Guida, guidaMedia.com, ©2009.
Who is this for?
Getting a fully functional script that actually reads in XML, parses it, and then sets element values is not easy to find on the Web. I searched for hours, but was only able to find bits and pieces to put together a function. So if you are looking to have a PHP script create an XML document filled with variables and HTML, then this code is for you.
What are all the files I need to evaluate this code?
Demo and Download
O.K. That is a lengthy intro, and if you are like me you just want the code, and to see an example. If you feel like you need some explanation, then you RTFM (Read The Freaking Manual). So let’s get to the good stuff… the example. Below is some HTML with a few element tags. Click the “Run AJAX XML Script” and see what happens. After that, down load the script, and open it in your editor.
This form will not work in this article. Please use the links at the bottom of the article to use the function examples.
If you have any questions, please do not hesitate to contact me, click here. I will do my best to get back to you promptly.Take care and good luck in your endevours.Rob, 2009