Anonymous user
XML/XPath: Difference between revisions
→{{header|AppleScript}}
Line 75:
set {theName, theAttributes, theElements} to {i's name, {}, i's XML elements}
try
set theValue to i's value
set theValue to theValue
on error
set theValue to null
Line 87:
end tell
if (count of theElements) > 0 then
set R to R & my getXMLElementsByName(theElements, theNameToFind)
else
if theName = theNameToFind then set R to R & theValue
end if
|