In article <fbhm6i$lil$1@[EMAIL PROTECTED]
>, Philipp Kraus
<philipp.kraus@[EMAIL PROTECTED]
> wrote:
> How I can read a xml file with AppleScript? I need the ip attribute in
> one variable, the iface and unx nodes in a list. Can I create "objects"
> like list of networks-objects and of the network-objects I can get the
> attributes like object-properties?
Is the structure you want to use set in stone, or would any XML-based
format work? In the latter case, you can use the "defaults" command
line command, called from AppleScript using "do shell script". There's
a specific XML format used for property lists (.plist files) and the
"defaults" command will read and write particular keys in it.
Otherwise, no, AppleScript, does not have an XML reader or writer. It
would be pretty easy to write your own if you don't need strict
parsing, though.
--
Jerry Kindall, Seattle, WA <http://www.jerrykindall.com/>
Send only plain text messages under 32K to the Reply-To address.
This mailbox is filtered aggressively to thwart spam and viruses.


|