parse xml string in a socket server
Nicholas Wieland
nicholas_wieland at _yahoo.it
Wed Feb 26 13:23:45 EST 2003
On Mon, 24 Feb 2003 21:41:04 +0000, Sephiroth *TMM* wrote:
> 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
> ________________________________
Guarda un po' chi ti trovo su comp.lang.python :D
More information about the Python-list
mailing list