I have a xml file in such format:
<?xml version="1.0" encoding="UTF-8" ?>
<TAGA>
<TAGB>TEXTB</TAGB>
TEXTA
</TAGA>
I am using elementTree
in parse this part of the file.
I can successfully get the "TEXTB" out, by using TagB.text
.
My problem is with "TEXTA". I have tried TagA.text
, which always returned None
. Does anyone have any idea how I should get the "TEXTA" out?