• 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: XMLlib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XMLlib


  • Subject: Re: XMLlib
  • From: Wayne Melrose <email@hidden>
  • Date: Sat, 14 Jul 2012 09:32:09 +1000

Awesome! 

thanks.. 

Thought I'd tried this!? anyway, this is cleaner than my code. 


On 13/07/2012, at 11:20 PM, Jim Skibbie wrote:

  • Try this:
set dataXML to XMLOpen "<?xml version=\"1.0\" encoding=\"UTF-8\"?><JDF xmlns:jdf=\"http://www.cip4.org/JDFSchema_1_1\" xmlns=\"http://www.cip4.org/JDFSchema_1_1\" ID=\"34578\" DescriptiveName=\"Description here\" Version=\"1.1\"><Comment>This is a comment</Comment></JDF>"
set the_root to XMLRoot dataXML
set the_path to XMLXPath the_root with "./@ID"
set theResult to XMLGetText the_path
 _______________________________________________
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: XMLlib (From: Jim Skibbie <email@hidden>)

  • Prev by Date: RE: scripting InDesign's Articles Panel
  • Next by Date: applet versus droplet
  • Previous by thread: Re: XMLlib
  • Next by thread: scripting InDesign's Articles Panel
  • Index(es):
    • Date
    • Thread