﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Find and Replace for XML in AS3</title>
	<atom:link href="http://keith-hair.net/blog/2008/05/30/find-and-replace-for-xml-in-as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://keith-hair.net/blog/2008/05/30/find-and-replace-for-xml-in-as3/</link>
	<description>Scripting is fun like any other hobby</description>
	<lastBuildDate>Wed, 28 Jul 2010 10:17:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: evildave</title>
		<link>http://keith-hair.net/blog/2008/05/30/find-and-replace-for-xml-in-as3/comment-page-1/#comment-689</link>
		<dc:creator>evildave</dc:creator>
		<pubDate>Wed, 12 May 2010 08:04:52 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.com/blog/?p=3#comment-689</guid>
		<description>That&#039;s a nice example of XML eating syntax.

Another little trick...

xml = new XML(xml.toXMLString().replace(regex,replacement));

Notionally it&#039;s just like opening the XML file in an editor and doing a regular expression search and replace.  

When it works, it works great, but there are many situations where it won&#039;t work, and it can become a trap for the unwary.

One particular example is just &#039;hacking&#039; a remote web site with links to &#039;http://somewhere.live/etc&#039; to &#039;./localfolder&#039; when you load XML, so that you can test lots of XML configured website crapola without maintaining a second copy of EVERYTHING.</description>
		<content:encoded><![CDATA[<p>That&#8217;s a nice example of XML eating syntax.</p>
<p>Another little trick&#8230;</p>
<p>xml = new XML(xml.toXMLString().replace(regex,replacement));</p>
<p>Notionally it&#8217;s just like opening the XML file in an editor and doing a regular expression search and replace.  </p>
<p>When it works, it works great, but there are many situations where it won&#8217;t work, and it can become a trap for the unwary.</p>
<p>One particular example is just &#8216;hacking&#8217; a remote web site with links to &#8216;http://somewhere.live/etc&#8217; to &#8216;./localfolder&#8217; when you load XML, so that you can test lots of XML configured website crapola without maintaining a second copy of EVERYTHING.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mkecman</title>
		<link>http://keith-hair.net/blog/2008/05/30/find-and-replace-for-xml-in-as3/comment-page-1/#comment-343</link>
		<dc:creator>mkecman</dc:creator>
		<pubDate>Tue, 15 Sep 2009 22:32:06 +0000</pubDate>
		<guid isPermaLink="false">http://keith-hair.com/blog/?p=3#comment-343</guid>
		<description>Thank you for posting findAndRemoveAttributeNames function! Really helped me!</description>
		<content:encoded><![CDATA[<p>Thank you for posting findAndRemoveAttributeNames function! Really helped me!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
