You need XPath. Something like this should return the node you want, then
you can access the text as you normally would:

XmlSearch(myxmldoc, "/result/recorddetail/FL[@val='id']")


http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-78cc.html
http://www.w3schools.com/xpath/xpath_syntax.asp

Blair


On Mon, Nov 25, 2013 at 1:36 PM, Dale Fraser <[email protected]> wrote:

> I have XML that looks like below
>
>
>
> I’d like to know the best way of retrieving the XmlText for the FL element
> where the XmlAttributes/val is Id
>
>
>
> Thus returing the 102539900000000066081 number.
>
>
>
> I can do this by looping over the record detail, but figured there was a
> better way.
>
>
>
>
>
> Regards
>
> Dale Fraser
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "cfaussie" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/cfaussie.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/groups/opt_out.

<<image001.png>>

Reply via email to