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

parsing XML


  • Subject: parsing XML
  • From: email@hidden (Guillaume Iacino)
  • Date: Fri, 8 Mar 2002 14:45:48 -0800

Hello,

I am trying to modify and XML document using XMLTools, but I am missing some basic knowledge in AppleScript and XMLTools to do it.

Let's say that I have a XML that looks like:

<Painting>
<Color></Color>
</Painting>

I want to end up with something like:

<Painting>
<Color>Red</Color>
<Color>Yellow</Color>
<Color>White</Color>
</Painting>

How do I set the Color inside the tags and how do I add some.
I found an example where I can create the XML from scratch but this wrong work for me. I also know that I could do it using a cgi script but I need to create a stand alone AppleScript.

Any insights, tips, examples or links will more very appreciated.

Thank you in advance.


--
/*
Guillaume Iacino

Product Support Manager - Totally Hip Software
201 - 1040 Hamilton Street Vancouver, B.C. Canada V6B 2R9
Tel:604.685.6525 x402 : Fax:604.685.4057

<http://www.blueabuse.com/> <http://www.liveslideshow.com>
<http://www.totallyhip.com/> <http://www.totallyhip.com/lsdn/>
*/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Running a Script Automatically
  • Next by Date: Re: Script to reboot from X into 9
  • Previous by thread: Re: Script to reboot from X into 9
  • Next by thread: Re: parsing XML
  • Index(es):
    • Date
    • Thread