I am attempting to parse an XML file using python expat. I have the following line in my XML file:
<Action><fail/></Action>
expat identifies the start and end tags but converts the & lt; to the less than character and the same for the greater than character and thus parses it like this:
outcome:
START 'Action'
DATA '<'
DATA 'fail/'
DATA '>'
END 'Action'
instead of the desired:
START 'Action'
DATA '<fail/>'
END 'Action'
I would like to have the desired outcome, how do I prevent expat from messing up?