Re: XMLNextSibling is there an easier way
Re: XMLNextSibling is there an easier way
- Subject: Re: XMLNextSibling is there an easier way
- From: email@hidden
- Date: Thu, 1 May 2008 00:47:06 +0200
Title: Re: XMLNextSibling is there an easier
way
At 4:02 PM -0500 4/30/08, Jim Skibbie wrote:
Yes, that is the element I'm looking to
point to, but that XMLXPath command does not return an XMLRef using
XMLLib in Applescript when requested like this:
set CustomFieldPath to XMLXPath the_root with "ROW/IDNoSetItemParent[. =
\"6353368\"]/following-sibling::Value[position()=1]"
That's very bizarre. I just copied
your sample XML into a new Unicode window in Smile, then I copied the
line above into an AS Terminal and I hit the Enter key (alt-Return),
and it looks like it works:
set the_root to XMLRoot (XMLOpen (get text of window 2))
set CustomFieldPath to XMLXPath the_root with
"ROW/IDNoSetItemParent[. =
\"6353368\"]/following-sibling::Value[position()=1]"
XMLGetText CustomFieldPath
-- {"VARnumber"}
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden