<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Format XML with TextWrangler</title>
	<atom:link href="http://magp.ie/2010/02/15/format-xml-with-textwrangler/feed/" rel="self" type="application/rss+xml" />
	<link>http://magp.ie/2010/02/15/format-xml-with-textwrangler/</link>
	<description>A nest for the random, shiny, online tidbits I stumble across...</description>
	<lastBuildDate>Thu, 16 Feb 2012 23:55:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Jelle</title>
		<link>http://magp.ie/2010/02/15/format-xml-with-textwrangler/#comment-542</link>
		<dc:creator><![CDATA[Jelle]]></dc:creator>
		<pubDate>Fri, 10 Feb 2012 17:35:20 +0000</pubDate>
		<guid isPermaLink="false">http://blogalhost.wordpress.com/?p=97#comment-542</guid>
		<description><![CDATA[Thanks a lot, really useful!]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot, really useful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thomaslund</title>
		<link>http://magp.ie/2010/02/15/format-xml-with-textwrangler/#comment-541</link>
		<dc:creator><![CDATA[thomaslund]]></dc:creator>
		<pubDate>Mon, 30 Jan 2012 14:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://blogalhost.wordpress.com/?p=97#comment-541</guid>
		<description><![CDATA[I removed the 	--c14n option and it left my CDATA intact.

[sourcecode]
xmllint &quot;$*&quot; &#124; XMLLINT_INDENT=$&#039;\t&#039; xmllint --encode UTF-8 --format -
[/sourcecode]]]></description>
		<content:encoded><![CDATA[<p>I removed the 	&#8211;c14n option and it left my CDATA intact.</p>
<pre class="brush: plain;">
xmllint &quot;$*&quot; | XMLLINT_INDENT=$'\t' xmllint --encode UTF-8 --format -
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://magp.ie/2010/02/15/format-xml-with-textwrangler/#comment-533</link>
		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Fri, 20 Jan 2012 03:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://blogalhost.wordpress.com/?p=97#comment-533</guid>
		<description><![CDATA[Very helpful. Thank you very much for taking the time to write this up.]]></description>
		<content:encoded><![CDATA[<p>Very helpful. Thank you very much for taking the time to write this up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Reeder</title>
		<link>http://magp.ie/2010/02/15/format-xml-with-textwrangler/#comment-488</link>
		<dc:creator><![CDATA[John Reeder]]></dc:creator>
		<pubDate>Tue, 15 Nov 2011 20:02:46 +0000</pubDate>
		<guid isPermaLink="false">http://blogalhost.wordpress.com/?p=97#comment-488</guid>
		<description><![CDATA[Dude, where can I send $1,000,000.00? Seriously, Text Wrangler is my text editor of choice but it&#039;s lack of pretty printing functionality for xml was a pain. I have been looking for a good xml editor to accomplish just what this simple script does. Thanks a bunch!]]></description>
		<content:encoded><![CDATA[<p>Dude, where can I send $1,000,000.00? Seriously, Text Wrangler is my text editor of choice but it&#8217;s lack of pretty printing functionality for xml was a pain. I have been looking for a good xml editor to accomplish just what this simple script does. Thanks a bunch!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lutomas</title>
		<link>http://magp.ie/2010/02/15/format-xml-with-textwrangler/#comment-478</link>
		<dc:creator><![CDATA[lutomas]]></dc:creator>
		<pubDate>Sun, 30 Oct 2011 10:40:33 +0000</pubDate>
		<guid isPermaLink="false">http://blogalhost.wordpress.com/?p=97#comment-478</guid>
		<description><![CDATA[Thanks!!!]]></description>
		<content:encoded><![CDATA[<p>Thanks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo</title>
		<link>http://magp.ie/2010/02/15/format-xml-with-textwrangler/#comment-477</link>
		<dc:creator><![CDATA[Leo]]></dc:creator>
		<pubDate>Fri, 28 Oct 2011 14:12:39 +0000</pubDate>
		<guid isPermaLink="false">http://blogalhost.wordpress.com/?p=97#comment-477</guid>
		<description><![CDATA[Great solution!

However, there&#039;s a big caveat: Tidy also deletes CDATA tags! If you need your XML to maintain the original text as it was, you may run into trouble.

Tidy does &quot;the right thing&quot; by replacing sensitive characters with their entities, e.g.:

[sourcecode language=&quot;xml&quot;]&lt;value&gt;[CDATA[Your measurement of n was correct if n&lt;2.5]]&gt;&lt;/value&gt;[/sourcecode]

is transformed to

[sourcecode language=&quot;xml&quot;]&lt;value&gt;Your measurement of n was correct if n&lt;2.5&lt;/value&gt;[/sourcecode]

This is OK for information in an HTML context, but not if you need the content for other output channels like print!]]></description>
		<content:encoded><![CDATA[<p>Great solution!</p>
<p>However, there&#8217;s a big caveat: Tidy also deletes CDATA tags! If you need your XML to maintain the original text as it was, you may run into trouble.</p>
<p>Tidy does &#8220;the right thing&#8221; by replacing sensitive characters with their entities, e.g.:</p>
<pre class="brush: xml;">&lt;value&gt;[CDATA[Your measurement of n was correct if n&lt;2.5]]&gt;&lt;/value&gt;</pre>
<p>is transformed to</p>
<pre class="brush: xml;">&lt;value&gt;Your measurement of n was correct if n&amp;lt;2.5&lt;/value&gt;</pre>
<p>This is OK for information in an HTML context, but not if you need the content for other output channels like print!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://magp.ie/2010/02/15/format-xml-with-textwrangler/#comment-473</link>
		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Tue, 27 Sep 2011 22:32:11 +0000</pubDate>
		<guid isPermaLink="false">http://blogalhost.wordpress.com/?p=97#comment-473</guid>
		<description><![CDATA[Thank you Thank you Thank you.]]></description>
		<content:encoded><![CDATA[<p>Thank you Thank you Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eoin</title>
		<link>http://magp.ie/2010/02/15/format-xml-with-textwrangler/#comment-372</link>
		<dc:creator><![CDATA[Eoin]]></dc:creator>
		<pubDate>Wed, 10 Aug 2011 15:31:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogalhost.wordpress.com/?p=97#comment-372</guid>
		<description><![CDATA[Hi Piotr, you could try posting the xml in the comment within the &lt;a href=&quot;http://en.support.wordpress.com/code/posting-source-code/&quot; rel=&quot;nofollow&quot;&gt;sourcecode shortcode&lt;/a&gt;]]></description>
		<content:encoded><![CDATA[<p>Hi Piotr, you could try posting the xml in the comment within the <a href="http://en.support.wordpress.com/code/posting-source-code/" rel="nofollow">sourcecode shortcode</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eoin</title>
		<link>http://magp.ie/2010/02/15/format-xml-with-textwrangler/#comment-371</link>
		<dc:creator><![CDATA[Eoin]]></dc:creator>
		<pubDate>Wed, 10 Aug 2011 15:29:42 +0000</pubDate>
		<guid isPermaLink="false">http://blogalhost.wordpress.com/?p=97#comment-371</guid>
		<description><![CDATA[Hi Michael, you could try posting the xml in the comment within the &lt;a href=&quot;http://en.support.wordpress.com/code/posting-source-code/&quot; rel=&quot;nofollow&quot;&gt;sourcecode shortcode&lt;/a&gt;]]></description>
		<content:encoded><![CDATA[<p>Hi Michael, you could try posting the xml in the comment within the <a href="http://en.support.wordpress.com/code/posting-source-code/" rel="nofollow">sourcecode shortcode</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Worthington</title>
		<link>http://magp.ie/2010/02/15/format-xml-with-textwrangler/#comment-370</link>
		<dc:creator><![CDATA[Michael Worthington]]></dc:creator>
		<pubDate>Wed, 10 Aug 2011 14:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://blogalhost.wordpress.com/?p=97#comment-370</guid>
		<description><![CDATA[Looks like it didn&#039;t post my XML examples. Here they are:

Desired:

&quot;&quot;

Currently, the script truncates to this:

&quot;&quot;]]></description>
		<content:encoded><![CDATA[<p>Looks like it didn&#8217;t post my XML examples. Here they are:</p>
<p>Desired:</p>
<p>&#8220;&#8221;</p>
<p>Currently, the script truncates to this:</p>
<p>&#8220;&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
