Anonymous user
XML/XPath: Difference between revisions
→{{header|AppleScript}}
Line 70:
''AppleScript has no-built in support for XPath, but it could be used via a 'do shell script' command. Here's a solution using Apple System Events.
Unfortunately, System Events cannot accomplish the first goal, but it's
<lang AppleScript>on getElementsByName(theElement, theNameToFind)
Line 76:
repeat with i in theElement
tell application "System Events"
set {theName
try
set theValue to i's value
Line 125:
return my getElementsByName(xmlData's contents, "price")
--> {"14.50", "23.99", "4.95", "3.56"}
end</lang>
=={{header|C sharp}}==
|