<?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: The Force Unleashed: XML+XPath on Android using dom4j and Jaxen</title>
	<atom:link href="http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpath-on-android-using-dom4j-and-jaxen/feed/" rel="self" type="application/rss+xml" />
	<link>http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpath-on-android-using-dom4j-and-jaxen/</link>
	<description>Tech And Talk - by Matthias Käppler</description>
	<lastBuildDate>Thu, 17 Dec 2009 09:41:00 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: anoymous</title>
		<link>http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpath-on-android-using-dom4j-and-jaxen/#comment-679</link>
		<dc:creator>anoymous</dc:creator>
		<pubDate>Mon, 30 Nov 2009 23:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://brainflush.wordpress.com/?p=83#comment-679</guid>
		<description>The benchmark is applicable for any devices and processor types, a comparison with SAX type is somewhat difficult because, SAX is very low level and doesn&#039;t support random access, yet VTD outperforms SAX by a typical 2 times, and still support XPath,random acess and has its signature of ease of use...</description>
		<content:encoded><![CDATA[<p>The benchmark is applicable for any devices and processor types, a comparison with SAX type is somewhat difficult because, SAX is very low level and doesn&#8217;t support random access, yet VTD outperforms SAX by a typical 2 times, and still support XPath,random acess and has its signature of ease of use&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias Käppler</title>
		<link>http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpath-on-android-using-dom4j-and-jaxen/#comment-672</link>
		<dc:creator>Matthias Käppler</dc:creator>
		<pubDate>Wed, 25 Nov 2009 08:49:14 +0000</pubDate>
		<guid isPermaLink="false">http://brainflush.wordpress.com/?p=83#comment-672</guid>
		<description>That&#039;s a rather interesting concept. Do you have benchmarks for mobile devices, in particular, Android? Also, I was really missing a comparison to a pure SAX parser. What are the dependencies of the Java implementation?</description>
		<content:encoded><![CDATA[<p>That&#8217;s a rather interesting concept. Do you have benchmarks for mobile devices, in particular, Android? Also, I was really missing a comparison to a pure SAX parser. What are the dependencies of the Java implementation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpath-on-android-using-dom4j-and-jaxen/#comment-671</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 25 Nov 2009 08:36:31 +0000</pubDate>
		<guid isPermaLink="false">http://brainflush.wordpress.com/?p=83#comment-671</guid>
		<description>vtd-xml has the industry leading parsing and xpath performance

&lt;a href=&quot;http://vtd-xml.sf.net&quot; rel=&quot;nofollow&quot;&gt;vtd-xml&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>vtd-xml has the industry leading parsing and xpath performance</p>
<p><a href="http://vtd-xml.sf.net" rel="nofollow">vtd-xml</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias Käppler</title>
		<link>http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpath-on-android-using-dom4j-and-jaxen/#comment-656</link>
		<dc:creator>Matthias Käppler</dc:creator>
		<pubDate>Fri, 13 Nov 2009 09:57:10 +0000</pubDate>
		<guid isPermaLink="false">http://brainflush.wordpress.com/?p=83#comment-656</guid>
		<description>sources are now on my GitHub account:
http://github.com/kaeppler/dom4j-1.6.1-harmony</description>
		<content:encoded><![CDATA[<p>sources are now on my GitHub account:<br />
<a href="http://github.com/kaeppler/dom4j-1.6.1-harmony" rel="nofollow">http://github.com/kaeppler/dom4j-1.6.1-harmony</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Berkel</title>
		<link>http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpath-on-android-using-dom4j-and-jaxen/#comment-649</link>
		<dc:creator>Jan Berkel</dc:creator>
		<pubDate>Tue, 20 Oct 2009 13:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://brainflush.wordpress.com/?p=83#comment-649</guid>
		<description>just found another option: there&#039;s a sax driver for android&#039;s pull parser, which you can use like so:

&lt;code&gt;
XmlPullParser parser = org.xmlpull.v1.XmlPullParserFactory.newInstance().newPullParser();
Driver driver = new org.xmlpull.v1.sax2.Driver(parser);
driver.parse(new InputSource(...));
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>just found another option: there&#8217;s a sax driver for android&#8217;s pull parser, which you can use like so:</p>
<p><code><br />
XmlPullParser parser = org.xmlpull.v1.XmlPullParserFactory.newInstance().newPullParser();<br />
Driver driver = new org.xmlpull.v1.sax2.Driver(parser);<br />
driver.parse(new InputSource(...));<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias Käppler</title>
		<link>http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpath-on-android-using-dom4j-and-jaxen/#comment-648</link>
		<dc:creator>Matthias Käppler</dc:creator>
		<pubDate>Tue, 20 Oct 2009 07:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://brainflush.wordpress.com/?p=83#comment-648</guid>
		<description>Hi Jan,

yes, good point. In fact, I&#039;ve recently switched to git for version control on all projects I work on, and I plan to move some of them to GitHub anyway. I&#039;ll let you know once that&#039;s done so everyone can hack away on those dom4j sources more easily.</description>
		<content:encoded><![CDATA[<p>Hi Jan,</p>
<p>yes, good point. In fact, I&#8217;ve recently switched to git for version control on all projects I work on, and I plan to move some of them to GitHub anyway. I&#8217;ll let you know once that&#8217;s done so everyone can hack away on those dom4j sources more easily.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Berkel</title>
		<link>http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpath-on-android-using-dom4j-and-jaxen/#comment-647</link>
		<dc:creator>Jan Berkel</dc:creator>
		<pubDate>Mon, 19 Oct 2009 22:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://brainflush.wordpress.com/?p=83#comment-647</guid>
		<description>hi matthias, 

thanks for your work on this, i&#039;ve been trying to get xml working on android for quite a while now. how about svn importing dom4j into github and then have a separate branch containing your harmony fixes? i&#039;d be happy to set it up if you send me the diff.</description>
		<content:encoded><![CDATA[<p>hi matthias, </p>
<p>thanks for your work on this, i&#8217;ve been trying to get xml working on android for quite a while now. how about svn importing dom4j into github and then have a separate branch containing your harmony fixes? i&#8217;d be happy to set it up if you send me the diff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias Käppler</title>
		<link>http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpath-on-android-using-dom4j-and-jaxen/#comment-645</link>
		<dc:creator>Matthias Käppler</dc:creator>
		<pubDate>Tue, 29 Sep 2009 15:10:38 +0000</pubDate>
		<guid isPermaLink="false">http://brainflush.wordpress.com/?p=83#comment-645</guid>
		<description>Hey Eric,

I also have a small XML parser abstraction for Android in the pipe (I plan to release this as part of my DroidFu utility library for Android) which is purely based on the XML Pull Parser implementation shipped with Android. Nothing special really, but it takes care of wrapping boilerplate code (such as skipping whitespace between nodes and normalizing whitespace in text nodes) and works with minimal configuration effort, so you can focus on the actual task.

It uses reflection to allow being used like this:

&lt;code&gt;
class MyModelParser extends XmlModelParser {

   // currentItem is a MyModel

   public void onFooTag(String content, Map attributes, String parentNode) {
        this.currentItem.setFoo(new Foo());
   }

   public void onFooText(String text) {
        this.currentItem.getFoo().setValue(text);
   }
   ...
}

parser = new MyModelParser();
List results = parser.parse(someInputStream);
&lt;/code&gt;

when instantiated, the parser will take note of which callback methods are defined, and invoke them automatically when a matching tag or text node is spotted in the stream.

it&#039;s a simple thing, but works well enough for small documents. still have to test whether or not it&#039;s affected by the unicode expansion problem.</description>
		<content:encoded><![CDATA[<p>Hey Eric,</p>
<p>I also have a small XML parser abstraction for Android in the pipe (I plan to release this as part of my DroidFu utility library for Android) which is purely based on the XML Pull Parser implementation shipped with Android. Nothing special really, but it takes care of wrapping boilerplate code (such as skipping whitespace between nodes and normalizing whitespace in text nodes) and works with minimal configuration effort, so you can focus on the actual task.</p>
<p>It uses reflection to allow being used like this:</p>
<p><code><br />
class MyModelParser extends XmlModelParser {</p>
<p>   // currentItem is a MyModel</p>
<p>   public void onFooTag(String content, Map attributes, String parentNode) {<br />
        this.currentItem.setFoo(new Foo());<br />
   }</p>
<p>   public void onFooText(String text) {<br />
        this.currentItem.getFoo().setValue(text);<br />
   }<br />
   ...<br />
}</p>
<p>parser = new MyModelParser();<br />
List results = parser.parse(someInputStream);<br />
</code></p>
<p>when instantiated, the parser will take note of which callback methods are defined, and invoke them automatically when a matching tag or text node is spotted in the stream.</p>
<p>it&#8217;s a simple thing, but works well enough for small documents. still have to test whether or not it&#8217;s affected by the unicode expansion problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Mill</title>
		<link>http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpath-on-android-using-dom4j-and-jaxen/#comment-644</link>
		<dc:creator>Eric Mill</dc:creator>
		<pubDate>Tue, 29 Sep 2009 14:36:36 +0000</pubDate>
		<guid isPermaLink="false">http://brainflush.wordpress.com/?p=83#comment-644</guid>
		<description>Thanks for posting this. As you can tell by the continued comments, a good, simple XML parser in Android is still definitely a community need.</description>
		<content:encoded><![CDATA[<p>Thanks for posting this. As you can tell by the continued comments, a good, simple XML parser in Android is still definitely a community need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias Käppler</title>
		<link>http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpath-on-android-using-dom4j-and-jaxen/#comment-643</link>
		<dc:creator>Matthias Käppler</dc:creator>
		<pubDate>Tue, 22 Sep 2009 16:51:49 +0000</pubDate>
		<guid isPermaLink="false">http://brainflush.wordpress.com/?p=83#comment-643</guid>
		<description>You&#039;re right, it&#039;s indeed the BSD license. What got me turned off was this:

&lt;blockquote&gt;
3. The name &quot;DOM4J&quot; must not be used to endorse or promote
   products derived from this Software without prior written
   permission of MetaStuff, Ltd.  For written permission,
   please contact dom4j-info@metastuff.com.
 
4. Products derived from this Software may not be called &quot;DOM4J&quot;
   nor may &quot;DOM4J&quot; appear in their names without prior written
   permission of MetaStuff, Ltd. DOM4J is a registered
   trademark of MetaStuff, Ltd.
&lt;/blockquote&gt;
That doesn&#039;t sound very liberal after all, since I couldn&#039;t give a derived project a name like dom4j-android. Any name not containing dom4j would completely obscure my intention: fix dom4j to run on Harmony.</description>
		<content:encoded><![CDATA[<p>You&#8217;re right, it&#8217;s indeed the BSD license. What got me turned off was this:</p>
<blockquote><p>
3. The name &#8220;DOM4J&#8221; must not be used to endorse or promote<br />
   products derived from this Software without prior written<br />
   permission of MetaStuff, Ltd.  For written permission,<br />
   please contact <a href="mailto:dom4j-info@metastuff.com">dom4j-info@metastuff.com</a>.</p>
<p>4. Products derived from this Software may not be called &#8220;DOM4J&#8221;<br />
   nor may &#8220;DOM4J&#8221; appear in their names without prior written<br />
   permission of MetaStuff, Ltd. DOM4J is a registered<br />
   trademark of MetaStuff, Ltd.
</p></blockquote>
<p>That doesn&#8217;t sound very liberal after all, since I couldn&#8217;t give a derived project a name like dom4j-android. Any name not containing dom4j would completely obscure my intention: fix dom4j to run on Harmony.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
