<?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: Undocumented XML functionality</title>
	<atom:link href="http://undocumentedmatlab.com/blog/undocumented-xml-functionality/feed/" rel="self" type="application/rss+xml" />
	<link>http://undocumentedmatlab.com/blog/undocumented-xml-functionality/</link>
	<description>Charting Matlab's unsupported hidden underbelly</description>
	<lastBuildDate>Thu, 09 Sep 2010 11:59:30 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Yair Altman</title>
		<link>http://undocumentedmatlab.com/blog/undocumented-xml-functionality/comment-page-1/#comment-4530</link>
		<dc:creator>Yair Altman</dc:creator>
		<pubDate>Sat, 21 Nov 2009 16:36:23 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=751#comment-4530</guid>
		<description>Here&#039;s a nicer &quot;pretty-print&quot;, which uses the undocumented InputSource input argument format of &lt;b&gt;&lt;i&gt;xlswrite&lt;/i&gt;&lt;/b&gt;:

&lt;pre lang=&quot;matlab&quot;&gt;
fReader=java.io.FileReader(java.io.File(which(&#039;info.xml&#039;)));
xmlwrite(org.xml.sax.InputSource(fReader))
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a nicer &#8220;pretty-print&#8221;, which uses the undocumented InputSource input argument format of <b><i>xlswrite</i></b>:</p>

<div class="wp_syntax"><div class="code"><pre class="matlab" style="font-family:monospace;">fReader=java.<span style="">io</span>.<span style="">FileReader</span><span style="color: #080;">&#40;</span>java.<span style="">io</span>.<span style="">File</span><span style="color: #080;">&#40;</span><span style="color: #0000FF;">which</span><span style="color: #080;">&#40;</span><span style="color:#A020F0;">'info.xml'</span><span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span>;
xmlwrite<span style="color: #080;">&#40;</span>org.<span style="">xml</span>.<span style="">sax</span>.<span style="">InputSource</span><span style="color: #080;">&#40;</span>fReader<span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Donn Shull</title>
		<link>http://undocumentedmatlab.com/blog/undocumented-xml-functionality/comment-page-1/#comment-4491</link>
		<dc:creator>Donn Shull</dc:creator>
		<pubDate>Fri, 20 Nov 2009 17:58:22 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=751#comment-4491</guid>
		<description>Hi Yair,

It seems that many people follow an unusal convention for the format of their xml files. Even The MathWork&#039;s info.xml files don&#039;t following the standard indented form for xml files. A quick way to &quot;pretty print&quot; an xml file is to use saveXML method of the DOM node ie:

&lt;pre lang=&quot;matlab&quot;&gt;
x = xmlread(which(&#039;info.xml&#039;));
x.saveXML(x.getDocumentElement)
&lt;/pre&gt;

Thanks for the good work,

Donn</description>
		<content:encoded><![CDATA[<p>Hi Yair,</p>
<p>It seems that many people follow an unusal convention for the format of their xml files. Even The MathWork&#8217;s info.xml files don&#8217;t following the standard indented form for xml files. A quick way to &#8220;pretty print&#8221; an xml file is to use saveXML method of the DOM node ie:</p>

<div class="wp_syntax"><div class="code"><pre class="matlab" style="font-family:monospace;">x = xmlread<span style="color: #080;">&#40;</span><span style="color: #0000FF;">which</span><span style="color: #080;">&#40;</span><span style="color:#A020F0;">'info.xml'</span><span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span>;
x.<span style="">saveXML</span><span style="color: #080;">&#40;</span>x.<span style="">getDocumentElement</span><span style="color: #080;">&#41;</span></pre></div></div>

<p>Thanks for the good work,</p>
<p>Donn</p>
]]></content:encoded>
	</item>
</channel>
</rss>
