<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Export an Android SQLite db to an XML file on the SD Card</title>
	<link>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/</link>
	<description>My eclectic journey into the blogosphere</description>
	<pubDate>Fri, 30 Jul 2010 01:26:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: ckaatz</title>
		<link>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-673</link>
		<dc:creator>ckaatz</dc:creator>
		<pubDate>Thu, 20 May 2010 09:03:21 +0000</pubDate>
		<guid>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-673</guid>
		<description>Hey, this is an awesome way, but i everytime stops to work. how do i have to call the class properly?</description>
		<content:encoded><![CDATA[<p>Hey, this is an awesome way, but i everytime stops to work. how do i have to call the class properly?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nike dunk shoes</title>
		<link>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-669</link>
		<dc:creator>nike dunk shoes</dc:creator>
		<pubDate>Fri, 23 Apr 2010 04:25:03 +0000</pubDate>
		<guid>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-669</guid>
		<description>One again, your idea is very 

good.thank you!very much.</description>
		<content:encoded><![CDATA[<p>One again, your idea is very </p>
<p>good.thank you!very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trebak</title>
		<link>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-639</link>
		<dc:creator>Trebak</dc:creator>
		<pubDate>Wed, 10 Feb 2010 23:49:38 +0000</pubDate>
		<guid>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-639</guid>
		<description>Excellent. By any chance did you do a tutorial on importing the data from xml?</description>
		<content:encoded><![CDATA[<p>Excellent. By any chance did you do a tutorial on importing the data from xml?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trebak</title>
		<link>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-638</link>
		<dc:creator>Trebak</dc:creator>
		<pubDate>Wed, 10 Feb 2010 21:05:44 +0000</pubDate>
		<guid>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-638</guid>
		<description>Thanks! this has help me alot.  You're the man!!! By the way, did you get the importing the database back from the xml done as well?</description>
		<content:encoded><![CDATA[<p>Thanks! this has help me alot.  You&#8217;re the man!!! By the way, did you get the importing the database back from the xml done as well?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 0x1b</title>
		<link>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-631</link>
		<dc:creator>0x1b</dc:creator>
		<pubDate>Wed, 18 Nov 2009 00:40:56 +0000</pubDate>
		<guid>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-631</guid>
		<description>This is great...
Thank you very much!</description>
		<content:encoded><![CDATA[<p>This is great&#8230;<br />
Thank you very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-580</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Wed, 14 Oct 2009 20:04:44 +0000</pubDate>
		<guid>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-580</guid>
		<description>Be sure to check for illegal characters before you write it to XML, something like this:

                // Check for any illegal characters
		public String checkForIllegalChars(String val) {
			String newStr = val;
			
			if (newStr.contains("&#38;")) {  //make sure we do this check first
				newStr = newStr.replaceAll("&#38;", "&#38;");
			}
			
			if (newStr.contains("&#60;")) {
				newStr = newStr.replaceAll("")) {
				newStr = newStr.replaceAll("&#62;", "&#62;");
			}
			
			if (newStr.contains("\"")) {
				newStr = newStr.replaceAll("\"", "&#34;");
			}
			
			if (newStr.contains("'")) {
				newStr = newStr.replaceAll("'", "&apos;");
			}
			
			return newStr;
		}</description>
		<content:encoded><![CDATA[<p>Be sure to check for illegal characters before you write it to XML, something like this:</p>
<p>                // Check for any illegal characters<br />
		public String checkForIllegalChars(String val) {<br />
			String newStr = val;</p>
<p>			if (newStr.contains(&#8221;&amp;&#8221;)) {  //make sure we do this check first<br />
				newStr = newStr.replaceAll(&#8221;&amp;&#8221;, &#8220;&amp;&#8221;);<br />
			}</p>
<p>			if (newStr.contains(&#8221;&lt;&#8221;)) {<br />
				newStr = newStr.replaceAll(&#8221;")) {<br />
				newStr = newStr.replaceAll(&#8221;&gt;&#8221;, &#8220;&gt;&#8221;);<br />
			}</p>
<p>			if (newStr.contains(&#8221;\&#8221;")) {<br />
				newStr = newStr.replaceAll(&#8221;\&#8221;", &#8220;&quot;&#8221;);<br />
			}</p>
<p>			if (newStr.contains(&#8221;&#8216;&#8221;)) {<br />
				newStr = newStr.replaceAll(&#8221;&#8216;&#8221;, &#8220;&apos;&#8221;);<br />
			}</p>
<p>			return newStr;<br />
		}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinod</title>
		<link>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-538</link>
		<dc:creator>vinod</dc:creator>
		<pubDate>Tue, 01 Sep 2009 07:42:51 +0000</pubDate>
		<guid>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-538</guid>
		<description>How can i do if i have a large db .
can i store directly into the SD CARD directly  instead of internal memory .
how can i do it ...
sqliteio exception i am getting after some time</description>
		<content:encoded><![CDATA[<p>How can i do if i have a large db .<br />
can i store directly into the SD CARD directly  instead of internal memory .<br />
how can i do it &#8230;<br />
sqliteio exception i am getting after some time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-520</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Sat, 02 May 2009 12:33:34 +0000</pubDate>
		<guid>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-520</guid>
		<description>hi,, great work, but please can you also provide a READ source
chris</description>
		<content:encoded><![CDATA[<p>hi,, great work, but please can you also provide a READ source<br />
chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-519</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Wed, 29 Apr 2009 18:07:41 +0000</pubDate>
		<guid>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-519</guid>
		<description>hi, its cool, exactly what i was looking for.

please can you also publish the READ Class... i am quit sure you also have one :)
than it makes sense.

greets
chris</description>
		<content:encoded><![CDATA[<p>hi, its cool, exactly what i was looking for.</p>
<p>please can you also publish the READ Class&#8230; i am quit sure you also have one <img src='http://mgmblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
than it makes sense.</p>
<p>greets<br />
chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anna</title>
		<link>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-518</link>
		<dc:creator>Anna</dc:creator>
		<pubDate>Thu, 16 Apr 2009 22:13:25 +0000</pubDate>
		<guid>http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/#comment-518</guid>
		<description>Lovely! Works great. Thanks for posting!</description>
		<content:encoded><![CDATA[<p>Lovely! Works great. Thanks for posting!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
