PHP has
functions that can be used to parse XML documents easily. The DOM functions
available in PHP can be used for that purpose. If you have worked with
the DOM functions earlier in ASP, ASP.net or JavaScript, then it is
going to the same concept in PHP also. Even if you don't know that it
is easy to learn how to parse XML documents using PHP.
_______________________________________________
_______________________________________________
The
first step is to create a document object in PHP. This can be done using
'new DomDocument();'. This would create a document object that can be
used to load the XML document you need to work with.
A load
function is available to load the XML file that you want to work with.
Once you have loaded the XML file, you can use functions like getElementsByTagName
or use XPath to navigate through the nodes and output the result. A
good knowledge of XPath is certain to help you to work with the XML
files.
posted by Will Senn on Wed 30th Nov 2005 19:03 UTC (OS News)
This latest installment in the Core series from Prentice Hall PTR is a welcome arrival to the PHP/MySQL space. It is jam packed with useful information. At a little over 850 pages, this volume contains information on nearly every topic of interest in both the PHP and MySQL subject areas.
posted by Andy Tars on Fri 25th Apr 2003 17:06 UTC (New Mobile Computing)
João Paredes is an almost-21-year-old student of Electrotecnical and Computers Engeneering at Oporto's State University for Engeneering (Faculdade de Engenharia da Universidade do Porto), in Portugal. He is well known and respected in his community, known to be a visonary and a good leader.
posted by Adam S on Fri 6th Oct 2006 18:32 UTC (New Mobile Computing)
There's an interesting challenge in writing a good book about programming. At a certain point, you'll lose the newbies and alienate the technical. Below the line is a safe introductory book, above it is aimed at a smaller crowd.