XML DOM: XML/XHTML inside a text node

2005-11-02 Thread noahlt
In my program, I get input from the user and insert it into an XHTML document. Sometimes, this input will contain XHTML, but since I'm inserting it as a text node, xml.dom.minidom escapes the angle brackets ('<' becomes '<', '>' becomes '>'). I want to be able to override this behavior cleanly.

Re: Function returns none

2005-10-31 Thread noahlt
Thanks, that worked! -- http://mail.python.org/mailman/listinfo/python-list

Function returns none

2005-10-31 Thread noahlt
I'm trying to write a website updating script, but when I run the script, my function to search the DOM tree returns None instead of what it should. I have this program: import sys from xml.dom.minidom import parse # search the tree for an element with a particular class def findelemen