• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XMLlib XML to List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: XMLlib XML to List
      • From: Bruce Robertson <email@hidden>
    • Re: XMLlib XML to List
      • From: Wayne Melrose <email@hidden>
References: 
 >XMLlib XML to List (From: Wayne Melrose <email@hidden>)

  • Prev by Date: XMLlib XML to List
  • Next by Date: Re: XMLlib XML to List
  • Previous by thread: XMLlib XML to List
  • Next by thread: Re: XMLlib XML to List
  • Index(es):
    • Date
    • Thread