In article <030920071954452462%jerrykindall@[EMAIL PROTECTED]
>, Jerry
Kindall <jerrykindall@[EMAIL PROTECTED]
> wrote:
> 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.
Or, you could download the XML Tools freeware scripting addition from
Late Night Software, publishers of the MOST excellent Script Debugger.
<http://www.latenightsw.com/freeware/index.html>
--
Help improve usenet. Kill-file Google Groups.
http://improve-usenet.org/


|