Yes but I cannot get the if statement to work to compare the two or the
replaceChild portion to work. Could someone help me with that.
--
http://mail.python.org/mailman/listinfo/python-list
"George" <[EMAIL PROTECTED]> wrote:
> How can I do the following in python:
>
> [snipped]
In exactly the same way you could do it if you actually read the replies to the
thread with the same
topic you posted yesterday. Duh!
George
--
http://mail.python.org/mailman/listinfo/python-list
How can I do the following in python:
compare the text in the element tags with the elements
tags in filling and if they match replace the text within the elements
tags with the text in the matching element tag of fillin.
For example Since the text Monday in form matches the Element tag
in fill
>
> 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,
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
> 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
Hi there,
I have an XML document which contains a mixture of structural nodes
(called 'section' and with unique 'id' attributes) and non-structural
nodes (called anything else). The structural elements ('section's) can
contain, as well as non-structural elements, other structural elements.
I'm doi