Users on this list tipped me off to some way cool ways of accessing
XML
files. ... Say the xml file is "test.xml" on your desktop. It
contains an xml tree
where "Book" is the first level, and "Chapter" is the 2nd.
--Getting the values (parsing):
set xmlFile to POSIX path of ((path to desktop as string) &
"test.xml")
set myRecordList to (call method "dictionaryWithContentsOfFile:" of
class
"NSDictionary" with parameter xmlFile ) as record ...
If that works, then what you've got isn't really an XML file. I
mean, it is, but it's a very specific kind of XML, namely a property
list stored as XML. (Property lists don't have to be XML, by the
way.) The technique you're using won't work on any XML that isn't a
property list -- a Keynote document, for example. You could use
NSXMLDocument via "call method" instead, which would get you general
XML parsing.