Re: XMLlib XML to List
Re: XMLlib XML to List
- Subject: Re: XMLlib XML to List
- From: Emmanuel <email@hidden>
- Date: Mon, 5 Feb 2007 16:12:45 +0100
At 3:23 PM +0100 2/5/07, Wayne Melrose wrote:
Emmanuel,
I think you'll snap this one! But if anyone else beats him to it I'd
love to hear what you have to say..
Using the XMLlib from satimage I'm wondering how to get XML data to
a list.. I have a feeling that I'm overlooking something in the
XMLlib Library.
here is my XML
<?xml version="1.0" encoding="UTF-8"?>
<person>
<name>Wayne</name>
<email>email@hidden</email>
<address>2 mystreet st</address>
</person>
This is the result I want..
{"wayne", "email@hidden", "2 mystreet st"}
Here, that's just:
XMLGetText(XMLXPath theRoot with "*")
The interesting thing is, XMLXPath returns lists, and XMLGetText
accepts lists as its argument.
Best regards,
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden