Attachment: usps.taf
Description: Binary data

Hi all,

Here is a quick way to parse XML using XPATH

Ben

On Jun 16, 2006, at 11:27 AM, Dan Stein wrote:

This attached is the XML returned from USPS after I send a rate request.

 

I just need one of two things

 

  1. At least to get in a one column array the postage. It always comes back in the same order so I can easily grab what I want from even the one column array.
  2. An added bonus would be to have a two column array one with the method svcDescription

 

I think all I have messed up is the child declarations

 

I am trying

 

<@ASSIGN request$Total_Array value=<@ARRAY rows=10 cols=1>>

       

        <@FOR start=1 stop=10>

       

                               

                <@ASSIGN request$Total_Array[<@CURROW>,1] <@ELEMENTVALUE object=request$result element=root().child(1).child(2).child(<@CALC <@CURROW>>).Child(5) type=text>>

               

               

                                       

        </@FOR>

 

 

Boy is this easier in FileMaker I just need the element name Postage and the occurrence to get the value.

 

Anyway any help would be much appreciated.

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


Reply via email to