Re: DOM question

2005-06-02 Thread Diez B. Roggisch
> > Yes, in fact: > > //[EMAIL PROTECTED]//*[name()!='section'] > > would do the trick. > > I was trying to avoid using anything not in the standard Python > distribution if I could help it; I need to be able to use my code on > Linux, OS X and Windows. > > The xml.path package is from PyXML,

Re: DOM question

2005-06-02 Thread Richard Lewis
On Thu, 02 Jun 2005 14:34:47 +0200, "Diez B. Roggisch" <[EMAIL PROTECTED]> said: > > However, I got exactly the same problem: each time I use this function I > > just get a DOM Text node with a few white space (tabs and returns) in > > it. I guess this is the indentation in my source document? But

Re: DOM question

2005-06-02 Thread Diez B. Roggisch
> However, I got exactly the same problem: each time I use this function I > just get a DOM Text node with a few white space (tabs and returns) in > it. I guess this is the indentation in my source document? But why do I > not get the propert element nodes? Welcome to the wonderful world of DOM, W