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 20:05:16 +0100
At 9:33 AM -0800 2/5/07, Bruce Robertson wrote:
set theRoot to "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<person>
<name>Wayne</name>
<email>email@hidden</email>
<address>2 mystreet st</address>
</person>"
XMLGetText (XMLXPath theRoot with "*")
Bruce, is that what the dictionary says? Does it say that XMLXPath's
direct parameter is a string?
Here's the working script, if you still don't have time to open the dictionary.
set theroot to XMLRoot (XMLOpen "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<person>
<name>Wayne</name>
<email>email@hidden</email>
<address>2 mystreet st</address>
</person>")
XMLGetText (XMLXPath theroot with "*")
--> {"Wayne", "email@hidden", "2 mystreet st"}
_______________________________________________
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