Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > read XML File
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 1503 of 1668
Post > Topic >>

read XML File

by Philipp Kraus <philipp.kraus@[EMAIL PROTECTED] > Sep 3, 2007 at 09:10 PM

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
 




 10 Posts in Topic:
read XML File
Philipp Kraus <philipp  2007-09-03 21:10:10 
Re: read XML File
Jerry Kindall <jerryki  2007-09-03 19:54:45 
Re: read XML File
Dave Balderstone <dave  2007-09-03 21:25:35 
Private Message
   2007-09-03 22:56:26 
Private Message
   2007-09-04 00:49:51 
Private Message
   2007-09-07 22:56:51 
Private Message
   2007-09-07 21:38:08 
Private Message
   2007-09-09 01:00:24 
Private Message
   2007-09-08 20:00:49 
Private Message
   2007-09-09 12:20:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 4:12:03 CDT 2008.