Re: XML DOM: XML/XHTML inside a text node

2005-11-04 Thread Alan Kennedy
[EMAIL PROTECTED] > 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 > overr

Re: XML DOM: XML/XHTML inside a text node

2005-11-04 Thread uche . ogbuji
""" 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 cleanl

Re: XML DOM: XML/XHTML inside a text node

2005-11-04 Thread Walter Dörwald
[EMAIL PROTECTED] wrote: > 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

Re: XML DOM: XML/XHTML inside a text node

2005-11-03 Thread Paul Boddie
Roman Suzi wrote: > > On Thu, 2 Nov 2005 [EMAIL PROTECTED] wrote: > > Is there a better way? > > What about parsing the input into XML first? Is there any point in including > unescaped code into XML document unless it is XML itself? Indeed. My approach would be to parse the user's input using the

Re: XML DOM: XML/XHTML inside a text node

2005-11-02 Thread Roman Suzi
On Thu, 2 Nov 2005 [EMAIL PROTECTED] wrote: > 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

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.