<?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: Elegant XML parsing using the ElementTree Module</title>
	<atom:link href="http://www.learningpython.com/2008/05/07/elegant-xml-parsing-using-the-elementtree-module/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learningpython.com/2008/05/07/elegant-xml-parsing-using-the-elementtree-module/</link>
	<description>one man&#039;s journey into python...</description>
	<lastBuildDate>Sat, 18 May 2013 08:33:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Manish</title>
		<link>http://www.learningpython.com/2008/05/07/elegant-xml-parsing-using-the-elementtree-module/comment-page-1/#comment-238755</link>
		<dc:creator>Manish</dc:creator>
		<pubDate>Fri, 03 Aug 2012 01:01:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=74#comment-238755</guid>
		<description>Sorry here is the html code which I missed it.

`

         A
         AAAA
         CNAME
         HINFO
         MX

`</description>
		<content:encoded><![CDATA[<p>Sorry here is the html code which I missed it.</p>
<p>`</p>
<p>         A<br />
         AAAA<br />
         CNAME<br />
         HINFO<br />
         MX</p>
<p>`</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish</title>
		<link>http://www.learningpython.com/2008/05/07/elegant-xml-parsing-using-the-elementtree-module/comment-page-1/#comment-238754</link>
		<dc:creator>Manish</dc:creator>
		<pubDate>Fri, 03 Aug 2012 00:45:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=74#comment-238754</guid>
		<description>Hi 

I Just started learning python and trying to do web data parsing. I am trying to use xpath to get the value from the below html code.


         A
         AAAA
         CNAME
         HINFO
         MX


What I want is to search and print the value of &quot;SELECTED value&quot; that is it should print the output as &quot;CNAME&quot;.

I tried this code, but it&#039;s print only [].

xpath(&#039;//select[@name=&quot;record\[[0-9]{1,3}\]\[type\]&quot;]/option/following-sibling::text()[1]&#039;)

 Any help would be appreciated.</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>I Just started learning python and trying to do web data parsing. I am trying to use xpath to get the value from the below html code.</p>
<p>         A<br />
         AAAA<br />
         CNAME<br />
         HINFO<br />
         MX</p>
<p>What I want is to search and print the value of &#8220;SELECTED value&#8221; that is it should print the output as &#8220;CNAME&#8221;.</p>
<p>I tried this code, but it&#8217;s print only [].</p>
<p>xpath(&#8216;//select[@name="record\[[0-9]{1,3}\]\[type\]&#8220;]/option/following-sibling::text()[1]&#8216;)</p>
<p> Any help would be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jorge</title>
		<link>http://www.learningpython.com/2008/05/07/elegant-xml-parsing-using-the-elementtree-module/comment-page-1/#comment-238748</link>
		<dc:creator>jorge</dc:creator>
		<pubDate>Wed, 23 May 2012 17:59:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=74#comment-238748</guid>
		<description>Excellent and well written tutorial. Thx for your time</description>
		<content:encoded><![CDATA[<p>Excellent and well written tutorial. Thx for your time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: danish</title>
		<link>http://www.learningpython.com/2008/05/07/elegant-xml-parsing-using-the-elementtree-module/comment-page-1/#comment-238722</link>
		<dc:creator>danish</dc:creator>
		<pubDate>Sun, 19 Feb 2012 17:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=74#comment-238722</guid>
		<description>hi..it&#039;s a very helpful article...but i was having a problem. i know how to take a file in a variable(tree) through ET.parse..but this is a ElementTree object..now i am having trouble to loop through the elements of that object, because i cant iterate over tree in a for loop(for iteration i need elements)..there should be a step through which i can access the elements of the object</description>
		<content:encoded><![CDATA[<p>hi..it&#8217;s a very helpful article&#8230;but i was having a problem. i know how to take a file in a variable(tree) through ET.parse..but this is a ElementTree object..now i am having trouble to loop through the elements of that object, because i cant iterate over tree in a for loop(for iteration i need elements)..there should be a step through which i can access the elements of the object</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Infinit's Notepad</title>
		<link>http://www.learningpython.com/2008/05/07/elegant-xml-parsing-using-the-elementtree-module/comment-page-1/#comment-238715</link>
		<dc:creator>Infinit's Notepad</dc:creator>
		<pubDate>Sat, 21 Jan 2012 18:51:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=74#comment-238715</guid>
		<description>&lt;strong&gt;AI File Management....&lt;/strong&gt;

Goals. Generate file List.&#160; File list to contain the following: filename filepath filesize hash&#160; How will the list be stored? &#160;XML Paths to be scanned to be held in config file....</description>
		<content:encoded><![CDATA[<p><strong>AI File Management&#8230;.</strong></p>
<p>Goals. Generate file List.&nbsp; File list to contain the following: filename filepath filesize hash&nbsp; How will the list be stored? &nbsp;XML Paths to be scanned to be held in config file&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OKeymaker</title>
		<link>http://www.learningpython.com/2008/05/07/elegant-xml-parsing-using-the-elementtree-module/comment-page-1/#comment-238710</link>
		<dc:creator>OKeymaker</dc:creator>
		<pubDate>Sat, 07 Jan 2012 17:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=74#comment-238710</guid>
		<description>Just a thing. How to print out the xml file that I have loaded from internet? Thats all I want and thats all I dont know...</description>
		<content:encoded><![CDATA[<p>Just a thing. How to print out the xml file that I have loaded from internet? Thats all I want and thats all I dont know&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OKeymaker</title>
		<link>http://www.learningpython.com/2008/05/07/elegant-xml-parsing-using-the-elementtree-module/comment-page-1/#comment-238702</link>
		<dc:creator>OKeymaker</dc:creator>
		<pubDate>Tue, 03 Jan 2012 19:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=74#comment-238702</guid>
		<description>Thank you! This guide explains XML and python in sucha way that almost anyone can understand. I bet you have saved several noobs lives.
Keep it up! :)</description>
		<content:encoded><![CDATA[<p>Thank you! This guide explains XML and python in sucha way that almost anyone can understand. I bet you have saved several noobs lives.<br />
Keep it up! <img src='http://www.learningpython.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Finding where an operator reads from the construction history &#124; eX-SI Support</title>
		<link>http://www.learningpython.com/2008/05/07/elegant-xml-parsing-using-the-elementtree-module/comment-page-1/#comment-226594</link>
		<dc:creator>Finding where an operator reads from the construction history &#124; eX-SI Support</dc:creator>
		<pubDate>Mon, 10 Oct 2011 13:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=74#comment-226594</guid>
		<description>[...] a Python snippet that uses ElementTree to parse the connectionstack XML and then log the TextureOp tooltip that says where the op reads [...]</description>
		<content:encoded><![CDATA[<p>[...] a Python snippet that uses ElementTree to parse the connectionstack XML and then log the TextureOp tooltip that says where the op reads [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuliy</title>
		<link>http://www.learningpython.com/2008/05/07/elegant-xml-parsing-using-the-elementtree-module/comment-page-1/#comment-218044</link>
		<dc:creator>Yuliy</dc:creator>
		<pubDate>Fri, 23 Sep 2011 15:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=74#comment-218044</guid>
		<description>Thanks  a lot! This brief tutorial was very useful for me.</description>
		<content:encoded><![CDATA[<p>Thanks  a lot! This brief tutorial was very useful for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xml man</title>
		<link>http://www.learningpython.com/2008/05/07/elegant-xml-parsing-using-the-elementtree-module/comment-page-1/#comment-210603</link>
		<dc:creator>xml man</dc:creator>
		<pubDate>Tue, 06 Sep 2011 07:49:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningpython.com/?p=74#comment-210603</guid>
		<description>EXCELLENT tutorial for beginner ....
thanks...</description>
		<content:encoded><![CDATA[<p>EXCELLENT tutorial for beginner &#8230;.<br />
thanks&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
