How to convert & lt; in <in lxml, Python?
There is an xml file there:
<body>
<entry>
I go to <hw>to</hw> to school.
</entry>
</body>
For some reason I changed <hw>
to <hw>
and </hw>
to </hw>
before parsing it with the lxml parser.
<body>
<entry>
I go to <hw>to</hw> to school.
</entry>
</body>
But after changing the parsed XML data, I want to get the element <hw>
, not <hw>
. How can i do this?
+3
source to share
2 answers