parse xml string in a socket server

Sephiroth *TMM* alessandro at sephiroth.it
Mon Feb 24 16:41:04 EST 2003


Hi to all,
i'm a newbie in python and i've this problem..

i have no problem parsing an xml string with for example:

xmlstring = "<?xml version=\"1.0\"><root><message>hi</message></root>"
from xml.dom import minidom
print "parsing %s" % xmlstring
doc = minidom.parseString(xmlstring)

but if i put this in a function of a socket server which receive the xmlstring from a client ti gives me alway an error, "invalid
token".
I don't know why, the print give me exactly the same string but the parseString failed anyway

--

Alessandro Crugnola [sephiroth]
Flash | PHP Developer
http://www.sephiroth.it

Team Macromedia Flash Volunteer
http://www.macromedia.com/go/team

Join the Flash-PHP mailing list
http://groups.yahoo.com/group/flash-php/join
________________________________






More information about the Python-list mailing list