• 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: Jim Skibbie <email@hidden>
  • Date: Fri, 13 Jul 2012 13:20:32 +0000
  • Thread-topic: XMLlib

  • 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

  • Follow-Ups:
    • Re: XMLlib
      • From: Wayne Melrose <email@hidden>
  • Prev by Date: Re: XMLlib
  • Next by Date: scripting InDesign's Articles Panel
  • Previous by thread: Re: XMLlib
  • Next by thread: Re: XMLlib
  • Index(es):
    • Date
    • Thread