Peter Otten, 13.04.2014 10:56:
> from xml.etree import ElementTree as ET
> #root = ET.parse(filename).getroot()
> root = ET.fromstring(data)
> for department in root.findall(".//department"):
> name = department.find("name").text
> desc = department.find("desc").text
name = departmen
bruce wrote:
> The following text contains sample data. I'm simply trying to parse it
> using libxml2dom as the lib to extract data.
>
> As an example, to get the name/desc
>
> test data
>
>
> d = libxml2dom.parseString(s, html=1)
>
> p1="//department/name"
> p2="//department/desc
https://www.coursera.org/course/interactivepython?from_restricted_preview=1&course_id=971041&r=https%3A%2F%2Fclass.coursera.org%2Finteractivepython-003%2Fclass
On 13 April 2014 18:29, Ben Finney wrote:
> keith papa writes:
>
> > I want to start learning python today
>
> Welcome.
>
> What is yo
keith papa writes:
> I want to start learning python today
Welcome.
What is your current level of programming knowledge? What langauges, if
any, do you already use?
What are your goals for learning Python? What will you use it for?
--
\ “Few things are harder to put up with than the a
I want to start learning python today and I wanted to know which book I should
start with: A Byte of Python or Learn python the hard way?
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscripti