Hi All, iv been a member here a few months now and have been helped greatly in the past & would appreciate some pointers please.

I have been given an xml document & have been tasked with extracting information from it.

an example of data held in the xml file is as follows.
<enquiry_number>000001</enquiry_number>
<product_code>AI1W11</product_code>

Im not sure how to start ? or if its best to use HTML or PHP

any help would be very much appreciated.

regards

Hi All, iv been a member here a few months now and have been helped greatly in the past & would appreciate some pointers please.

I have been given an xml document & have been tasked with extracting information from it.

an example of data held in the xml file is as follows.
<enquiry_number>000001</enquiry_number>
<product_code>AI1W11</product_code>

Im not sure how to start ? or if its best to use HTML or PHP

any help would be very much appreciated.

regards

A lot depends on what you need to do, whether the document is well-formed, if this is a large document, etc. PHP is capable of parsing XML documents in several ways. One of the simplest is probably the SimpleXML PHP extension. Docs are here