Possible Duplicate:
A simple program to CRUD node and node values of xml file
I have searched the net, without luck, allthough it might be out there.....Somewhere.
The company i work for, has a BIG xml file, with description and details of all our products. All products are made as a record with a lot of Props - in the xml file.
<RECORD>
<PROP NAME="Name">
<PVAL>Product 1</PVAL>
<PROP NAME="Value">
<PVAL>10</PVAL>
</PROP>
<RECORD>
<PROP NAME="Name">
<PVAL>Product 2</PVAL>
<PROP NAME="Value">
<PVAL>20</PVAL>
</PROP>
I'm not very familiar with xml files. So my first questions is: Is this a common known struckture, and why make it like this - whats the idea?
Second Question : In PHP, if I where to list all Props of a record (Searching for Name=?) what would my approach be ? Loading everthing into an array ?