• 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
converting & into &
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

converting & into &


  • Subject: converting & into &
  • From: Bert Groeneveld <email@hidden>
  • Date: Tue, 13 Jul 2010 16:20:56 +0200

Hello,

In the following example the variable my_XML_file is an xml file that contains text like this:
&amp; and &gt;
I want to read the contents of the xml file and store it in the new variable myContent so that &amp; is converted to a simple & and &gt; is converted to a simple >.
I found somewhere on the Internet as <<class utf8>> (which is good for keeping the euro sign), but that doesn't help me.
Who can help? Is it anyway possible?

Bert.

set openedFile to open for access my_XML_file

set myContent to read openedFile as «class utf8»

close access openedFile
 _______________________________________________
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: converting &amp; into &
      • From: Tommy Bollman <email@hidden>
    • Re: converting &amp; into &
      • From: Richard Lake <email@hidden>
  • Prev by Date: re: /usr/local
  • Next by Date: Re: converting &amp; into &
  • Previous by thread: re: /usr/local
  • Next by thread: Re: converting &amp; into &
  • Index(es):
    • Date
    • Thread