-1

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

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by rskelley
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.