Dan,

 

I’m not real good at this, but I will take a stab at it.

 

I tested this and I think it gives you what you are looking for.

 

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

<@FOR start=1 stop=10>

  <@ASSIGN request$Total_Array[<@CURROW>,1] <@ELEMENTVALUE object='request$resultSet' element='root().child(1).child(1,Service,ID,<@calc "<@CURROW>-1">).child(5)'>>

  <@ASSIGN request$Total_Array[<@CURROW>,2] <@ELEMENTVALUE object='request$resultSet' element='root().child(1).child(1,Service,ID,<@calc "<@CURROW>-1">).child(7)'>>

</@FOR>

 

Steve Fogelson

Internet Commerce Solutions

 

 

 


From: Dan Stein [mailto:[EMAIL PROTECTED]
Sent: Friday, June 16, 2006 1:30 PM
To: [email protected]
Subject: Witango-Talk: Need help with XML parsing probably simple

 

Sorry here is the attachment

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