I'm trying to get the shipping quote from the website www.abfs.com. They have it setup so that if I send them a link that they return a dynamically created xml page with the quote included. For some reason I just can't wrap my brain around how I can go about parsing it. Below is the link I send them and the XML data-type definition. Any help would be greatly appreciated.
Link:
http://www.abfs.com/xml/aquotexml.asp?DL=2
&AcctNum=000000&Password=Password&ShipCity=Fort%20Smith
&ShipState=AR&ShipZip=72903&ShipCountry=US&ShipPay=Y&ShipAff=Y
&ConsCity=Denver&ConsState=CO&ConsZip=80202&ConsCountry=US
&Wgt1=800&Class1=50.0&Desc1=books
&PayTerms=P&ShipMonth=10&ShipDay=15&ShipYear=2000
&FrtLng=4&FrtWdth=4&FrtHght=4
Data-Type Definition:
<ABF> ABF Rate Quotation Data Type Definition.
<SHIP> Shipper Information. This section will be returned if there has been an error in the shipper's address / location information.
<CITYCODEINFO> City Code Information.
<SIMILARCITIES> Similar Cities.
<CITYRECORD> City Record.This section may contain listings of locations comparable to the shipper information originally entered.
<CITY> Possible city intended for the shipper/origin.
<STATE> Possible state code intended for the shipper/origin.
<ZIP> Possible zip code intended for the location of the shipper.
<STATION> The 3-digit ABF assigned station number.
<SERVICE> Service.
</CITYRECORD>
<NUMRECORDS> Number of City Record listings.
<NUMUNIQUECITIES> Number of Unique Cities.
<NUMUNIQUESTATIONS> Number of Unique Stations.
</SIMILARCITIES>
<SIMILARZIPS> Similar Zips.
<ZIPRECORD> Zip Record.This section may contain listings of locations comparable to the shipper information originally entered.
<CITY> Possible city intended for the shipper/origin.
<STATE> Possible state code intended for the shipper/origin.
<ZIP> Possible zip code intended for the location of the shipper.
<STATION> The 3-digit ABF assigned station number.
<SERVICE> Service.
</ZIPRECORD>
<NUMRECORDS> Number of Zip Records.
<NUMUNIQUEZIPS> Number of Unique Zips.
<NUMUNIQUESTATIONS> Number of Unique Stations.
</SIMILARZIPS>
<ZIPINFO> Zip Code Information.This section shows the address / location information that was originally entered.
<CITY> Originally entered city of the shipper.
<STATE> Originally entered state of the shipper.
<ZIP> Originally entered zip of the shipper.
<STATION> The 3-digit ABF assigned station number
<FIPS> FIPS.
</ZIPINFO>
<NUMERRORS> Number of Errors.
</CITYCODEINFO>
<DROPDOWN> This section contains HTML code need to populate a drop down list box of CITYRECORD AND ZIPRECORD entries.
</SHIP>
<CONS> Consignee Information. This section will be returned if there has been an error in the consignee's address / location information. The information contained within the tags follows the same format as that contained within the <SHIP> tags.
</CONS>
<TPB> Third Party Information. This section will be returned if there has been an error in the Third Party's address / location information. The information contained within the <TPB> tags follows the same format as that contained within the <SHIP> tags.
</TPB>
<NUMERRORS> Number of errors associated with request. If greater than "0", rate quotation will not be returned.
<ERRORS> Group of errors (not returned if NUMERRORS = "0").
Click here for a list of possible error codes and messages.
<ERRORCODE> Code associated with error.
<ERRORMESSAGE> Message assigned to error code.
</ERRORS>
<QUOTEID> Confirmation code for the rate quotation. This section will be returned when there are no errors in originally entered information.
<CHARGE> Rate Quotation. This section will be returned when there are no errors in originally entered information.
<ADVERTISEDTRANSIT> Advertised Transit Time. This section will be returned when there are no errors in originally entered information.
<DISCOUNTPERCENTAGE> Discount Percentage. This section will be returned when there are no errors in originally entered information.
<TPDELIVERYCHARGE> TruckPack Delivery Charge. This section will only be returned for a TruckPack shipment and when there are no errors in originally entered information. This charge is not included in the rate quotation returned in the <CHARGE> tag.
<TPCHARGEPERBOX> TruckPack Charge Per Box. This section will be returned for a TruckPack shipment and when there are no errors in originally entered information. This charge is not included in the rate quotation returned in the <CHARGE> tag.
</ABF>