[lxml-dev] Parsing this document

Ross Vandegrift ross at kallisti.us
Tue Nov 25 17:55:14 CET 2008


On Wed, Nov 19, 2008 at 01:25:27PM -0700, John Krukoff wrote:
> On Wed, 2008-11-19 at 15:19 -0500, Ross Vandegrift wrote:
> > >>> vtree.xpath("*")
> > [<Element {http://xml.juniper.net/junos/9.2R2/junos-esw}vlan-information at 95a8a04>]
> 
> From this result, it shows that at least your root element has a
> namespace. Take a look at this section of the documentation:
> http://codespeak.net/lxml/tutorial.html#namespaces

Ahhhhh, until I read that, I don't think I actually understood
namespaces at all.  It's funny how I don't think I saw anywhere in
the books I've read that namespaces can be nested and an internal
namespace overrides ones already defined.

Suddenly, things become quite a bit more clear :)

Thanks a bunch,

Ross

> 
> -- 
> John Krukoff <jkrukoff at ltgc.com>
> Land Title Guarantee Company

-- 
Ross Vandegrift
ross at kallisti.us

"If the fight gets hot, the songs get hotter.  If the going gets tough,
the songs get tougher."
	--Woody Guthrie


More information about the lxml-dev mailing list