I have a vendor that supplies products to us, they gave us an API to contact them to see if the products about to be ordered are avaliable. I setup a CURL connection to the form and it works fine. The problem is the vendor does not respond with an XML or even a CSV, they respond with an HTML table
exmple of a response.
[code=php]
<table border=1 cellpadding=1 cellspacing=0><TR bgcolor=dfdfdf><TD align=center>ItemID</TD><TD align=center>Item</TD><TD align=center>Order Qty.</TD><TD align=center>Avail. Qty.</TD><TD align=center>Price</TD></TR>
<TR bgcolor=92F59E><TD align=center>368</TD><TD align=center>DELUXE 35mm CAMERA KIT</TD><TD align=center>1</TD><TD align=center>45</TD><TD align=center>$12.00</TD></TR>
</table>
Now this is just 1 product, I can send them unlimited products and they will respond in this format but just add more rows. How in the world would I go about reading each colum so I can see what they are responding with. I am expecting to have to learn regex (which i have been putting off), but any suggestions would be awesome.
Thanks