Converting XML Into A PHP Data Structure
Does It Taste As Good As It XMLs?
Dante Lorenso
In the last few years, XML has received great media attention, and most
languages support the parsing and extraction of data from XML documents.
Besides being a great three-letter anacronym to sprinkle on your
resumé, XML is actually a useful data storage structure
for PHP programmers.
Before you begin to use XML, you must first determine if your project
really needs what XML offers. There are alternative data storage formats
like fixed-width column files, tab-delimited files, CSV files, and database
tables, but these formats typically can only manage a simple grid of
rows and columns of data. XML provides several additional benefits for
programmers including:
- data format abstraction,
- simple document tag/data validation,
- the ability to store data in a tree-like heirarchy,
- platform independence,
- ease of integration,
- and more...
...but you already know that. What you want to do is use XML data inside
your sparkling new web application. We'll explore one simple way to do
this in the remainder of this article.
[ Next Page ]
| Comments: | ||
| function calling from java script | lampsunil | 08/02/05 05:31 |
| RE: Xml to Array, another simple solution... | ans | 04/29/05 06:57 |
| Another option | Edemilson Lima | 01/15/04 13:19 |
| looking for solution | lakshman | 12/19/03 05:40 |
| Excellent job! | escobar | 09/16/03 13:09 |
| computer | norman | 02/28/03 05:59 |
| Thanks for the excellent article | Rob Keniger | 02/11/03 09:31 |
| xml2array+array2xml alternative | Tulpe | 02/03/03 08:35 |
| Use the best option... | Benjamin Smith | 02/03/03 00:59 |
| Xml to Array, another simple solution... | marcoBR | 01/10/03 20:51 |
| XML module for PHP | Phillip. | 01/10/03 13:27 |
| Well done | Sam | 12/30/02 16:01 |
| Array | RGJ | 12/27/02 08:53 |
| Great article! | Tormod | 12/25/02 11:38 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||

