• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XMLNextSibling is there an easier way
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: XMLNextSibling is there an easier way (From: Jim Skibbie <email@hidden>)

  • Prev by Date: Re: View Options
  • Next by Date: Re: choose from list re-visited - again, also
  • Previous by thread: Re: XMLNextSibling is there an easier way
  • Next by thread: Re: XMLNextSibling is there an easier way
  • Index(es):
    • Date
    • Thread