• 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
XML to AppleScript Record
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XML to AppleScript Record


  • Subject: XML to AppleScript Record
  • From: "Stockly, Ed" <email@hidden>
  • Date: Mon, 03 Mar 2008 11:24:20 -0800
  • Thread-topic: XML to AppleScript Record

 Before I go about reinventing the wheel, I have a question for the list.

Has anyone tried converting XML data to an appleScript record, using the xml
tags as record labels.

In other words,

<root>
  <xmlDataFormat Version="1.1">
  <dataTagFoo>
    <dataTagBar>
     "Data"
    </dataTagBar>
   <dataTagMore>
     "More Data Data"
    </dataTagMore>
 </dataTagFoo>
</root>

Should translate as:

{root:{{xmlDataFormat:{version:"1.1:"}}, {dataTagFoo:{dataTagBar:"Data"}},
{dataTagMore:"More Data Data"}}}

I couldn't see how to do this with any of the XML osax or system events. Am
I missing something?

Ed

 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: XML to AppleScript Record
      • From: Skeeve <email@hidden>
    • Re: XML to AppleScript Record
      • From: "Steven D. Majewski" <email@hidden>
    • Re: XML to AppleScript Record
      • From: "Mark J. Reed" <email@hidden>
    • Re: XML to AppleScript Record
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: recursive folder count
  • Next by Date: Re: Modification date in leopard
  • Previous by thread: Re: recursive folder count
  • Next by thread: Re: XML to AppleScript Record
  • Index(es):
    • Date
    • Thread