Subject: | |
From: | |
Reply To: | |
Date: | Wed, 7 Jun 2006 09:50:34 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hi Folks,
Late Night Software is pleased to announce the release of Universal versions
of its freeware XML Tools and XSLT Tools scripting additions.
XML Tools 2.9 allows AppleScript to easily parse and Generate XML data.
Version 2.9 introduces native support for Intel Macintoshes.
http://www.latenightsw.com/freeware/XMLTools2/index.html
XSLT Tools 2.1 allows AppleScript to apply XSL Stylesheets and to extract
information from XML data using XPath expressions. Version 2.1 provides the
following improvements:
- Native support for Intel Macintoshes
- Updated to Xerces-C 2.7 and Xalan-C 1.10
- A new sdef-based dictionary which includes example code
- The 'extract from XML' command now accepts multiple XPath matching strings
allowing for more complex XPath matching logic
http://www.latenightsw.com/freeware/XSLTTools/index.html
The 'extract from XML' command is the real gem of the XSLT Tools package.
It allows you to easily pull information from any XML file. Consider this
simple example:
set theXML to "<?xml version=\"1.0\"?>
<data>
<date>Monday, March 24, 2006</date>
<performer name=\"Tom Jones\" />
<performer name=\"Alicia Keys\" />
<performer name=\"Jessie Winchester\" />
</data>
"
-- extract the <date> element value
extract from xml theXML matching "/data/date" expression "text()"
--> { "Monday, March 24, 2006" }
-- extract the <performer> name attribute values
extract from xml theXML matching "/data/performer" expression "@name"
--> {
--> "Tom Jones",
--> "Alicia Keys",
--> "Jessie Winchester"
--> }
Cheers
-Mark
------------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 Script Debugger 4.0 - AppleScript IDE
WEB: http://www.latenightsw.com/ FaceSpan 4.3 - AppleScript RAD
Affrus 1.0 - Perl Debugging
|
|
|