On 06/16/2006 2:29 PM, "Dan Stein" <[EMAIL PROTECTED]> wrote in whole or in
part:

> 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

That'd be my guess.
 
> 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.

Witango is using Xpointer and not Xpath here... :D

Your XML:

    root() = IntlRateResponse (top element in the doc)
    child(1) = Package (first child of IntlRateResponse element)
    child(2) = Restrictions (second child of the Package element)

I think you want:

    child(1,Service,ID,<@CALC <@CURROW>>) = the first child of Package with
the attribute 'ID' that equals the current row.

    root().child(1).child(1,Service,ID,<@CALC <@CURROW>>).child(5)

I haven't "Xpointed" in a long time... (this is a big quess).
-- 
Beverly Voth
Tier3 Data & Web Services Group, LLC
DBA, Moonbow Software
Certified FileMaker 7 Developer
Web Design & Hosting: Coldfusion, Witango, PHP, SQL2000, MySQL, FMP
http://www.tier3web.com/xml.htm
606-864-0041



 
> Anyway any help would be much appreciated. 


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

Reply via email to