ElementTree : parse string input
Amit Khemka
khemkaamit at gmail.com
Thu Jul 6 12:07:18 EDT 2006
> On 6 Jul 2006 07:38:10 -0700, rajarshi.guha at gmail.com <rajarshi.guha at gmail.com> wrote:
> Any pointers to getting ElementTree to parse from a string would be
> appreciated (of course I could dump it to a temp file, but that doesn't
> seem elegent)
You can use the "fromstring" method.
Btw, did you looked at cElementTree module ? It claims to be much
'faster' and has very similar api as ElementTree Module.
link: http://effbot.org/zone/celementtree.htm
cheers,
amit.
--
----
Amit Khemka -- onyomo.com
Home Page: www.cse.iitd.ernet.in/~csd00377
Endless the world's turn, endless the sun's Spinning, Endless the quest;
I turn again, back to my own beginning, And here, find rest.
More information about the Python-list
mailing list