Hello,
I'm a newbie in Applescript and I would like to store my setting (for
my automator workflow) in a xml File with this strukture:
<?xml version="1.0" encoding="utf-8"?>
<networks>
<net ip="192.168.20.">
<interfaces>
<iface name="en0"/>
<iface name="en1"/>
</interfaces>
<serverpath>
<unc url="smb://xxx/home"/>
<unc url="smb://xxx/graphic"/>
<unc url="smb://xxx/mp3"/>
<unc url="smb://xxx/software"/>
<unc url="smb://xxx/lehre"/>
</serverpath>
</net>
<net ip="139.174.">
<interfaces>
<iface name="en0"/>
<iface name="en1"/>
</interfaces>
<serverpath>
<unc url="smb://nas1/home"/>
<unc url="smb://lizzi/msdnaa"/>
<unc url="smb://nas2/public"/>
<unc url="smb://nas1/temp"/>
</serverpath>
</net>
</networks>
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?
Thanks for help
Phil