<?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: WebPath: Python XPath 2 engine now up on Sourceforge</title>
	<atom:link href="http://dubinko.info/blog/2008/01/25/webpath-python-xpath-2-engine-now-up-on-sourceforge/feed/" rel="self" type="application/rss+xml" />
	<link>http://dubinko.info/blog/2008/01/25/webpath-python-xpath-2-engine-now-up-on-sourceforge/</link>
	<description>From an XML geek, a reader, a writer, a connector, a man of the people (says keep hope alive)</description>
	<lastBuildDate>Sat, 01 Oct 2011 16:18:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Geoffrey Sneddon</title>
		<link>http://dubinko.info/blog/2008/01/25/webpath-python-xpath-2-engine-now-up-on-sourceforge/comment-page-1/#comment-3923</link>
		<dc:creator>Geoffrey Sneddon</dc:creator>
		<pubDate>Mon, 11 Feb 2008 23:31:34 +0000</pubDate>
		<guid isPermaLink="false">http://dubinko.info/blog/2008/01/25/webpath-python-xpath-2-engine-now-up-on-sourceforge/#comment-3923</guid>
		<description>Ah, the above issue seems to be with minidom, and not WebPath. I&#039;ve moved over to using pxdom, and that (at least) works all right.</description>
		<content:encoded><![CDATA[<p>Ah, the above issue seems to be with minidom, and not WebPath. I&#8217;ve moved over to using pxdom, and that (at least) works all right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoffrey Sneddon</title>
		<link>http://dubinko.info/blog/2008/01/25/webpath-python-xpath-2-engine-now-up-on-sourceforge/comment-page-1/#comment-3919</link>
		<dc:creator>Geoffrey Sneddon</dc:creator>
		<pubDate>Sun, 10 Feb 2008 22:19:42 +0000</pubDate>
		<guid isPermaLink="false">http://dubinko.info/blog/2008/01/25/webpath-python-xpath-2-engine-now-up-on-sourceforge/#comment-3919</guid>
		<description>Hey! I managed to stumble across this while looking for a lightweight implementation of XPath written in Python (as opposed to relying on C, and re-implementing everything under the sun as part of it (like the entire DOM)).

On the subject of minidom, I&#039;d say just rely on having an implementation of DOM (level 3 I assume you&#039;d want for compareDocumentPosition() so you return NodeLists in document order). Admittedly, this prohibits use of minidom, but what are the real issues with it? Just how &quot;mini&quot; it is?

And on one final note, a possible bug (though my XPath may just be wrong :)): &lt;code&gt;//span[@title=&#039;XHTML&#039;]&lt;/code&gt; causes:

  File &quot;/Volumes/Data/Source/webpath/wpcore.py&quot;, line 42, in string
    return &#039;&#039;.join([n.nodeValue for n in allnodes if n.nodeType==3])
AttributeError: Text instance has no attribute &#039;nodeValue&#039;

Alas, I&#039;d offer to help if I could, but my knowledge of XPath is a bit too limited to be of much help (and the source is pushing my knowledge of Python, but I can just cope with that).</description>
		<content:encoded><![CDATA[<p>Hey! I managed to stumble across this while looking for a lightweight implementation of XPath written in Python (as opposed to relying on C, and re-implementing everything under the sun as part of it (like the entire DOM)).</p>
<p>On the subject of minidom, I&#8217;d say just rely on having an implementation of DOM (level 3 I assume you&#8217;d want for compareDocumentPosition() so you return NodeLists in document order). Admittedly, this prohibits use of minidom, but what are the real issues with it? Just how &#8220;mini&#8221; it is?</p>
<p>And on one final note, a possible bug (though my XPath may just be wrong :)): <code>//span[@title='XHTML']</code> causes:</p>
<p>  File &#8220;/Volumes/Data/Source/webpath/wpcore.py&#8221;, line 42, in string<br />
    return &#8221;.join([n.nodeValue for n in allnodes if n.nodeType==3])<br />
AttributeError: Text instance has no attribute &#8216;nodeValue&#8217;</p>
<p>Alas, I&#8217;d offer to help if I could, but my knowledge of XPath is a bit too limited to be of much help (and the source is pushing my knowledge of Python, but I can just cope with that).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

