• 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: Help parsing XML file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help parsing XML file


  • Subject: Re: Help parsing XML file
  • From: Emmanuel <email@hidden>
  • Date: Sun, 9 Mar 2008 12:12:38 +0100

At 12:10 PM -0500 3/8/08, Mark J. Reed wrote:
The difference is, I think, between "XPath" itself and "a node set
returned by an XPath expression".  XPath itself will, depending on the
chosen axis, iterate over the document in a specified order, including
the document order, but if a predicate returns a "node set", then that
result is inherently unordered (and without duplicates).

That's right. Sorry I wrote too fast. Apologies to the authors.

That said, as far as us applescripters are concerned, let's use XMLLib's XMLXpath command, which returns a list of nodes, whose order is the original order.

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: Help parsing XML file (From: Jim Skibbie <email@hidden>)
 >Re: Help parsing XML file (From: "Mark J. Reed" <email@hidden>)
 >Re: Help parsing XML file (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Doc
  • Next by Date: New Error -8086
  • Previous by thread: Re: Help parsing XML file
  • Next by thread: Re: Help parsing XML file
  • Index(es):
    • Date
    • Thread