Oct-21-2018, 01:37 PM
Hi,
I try to get this xml code…
<root>
<action>The guy enters the room and <bold>Slam!</bold> shuts the door.</action>
</root>
built from a python program using xml library (not lxml).
What I absolutely CANT figure out is how inserting the <bold> node INSIDE a text of the parent <action> node. I succeed to insert it but it falls at the end of the parent <action> node, not in its right place in the middle of the sentence.
Any idea ?
Alexandre
I try to get this xml code…
<root>
<action>The guy enters the room and <bold>Slam!</bold> shuts the door.</action>
</root>
built from a python program using xml library (not lxml).
What I absolutely CANT figure out is how inserting the <bold> node INSIDE a text of the parent <action> node. I succeed to insert it but it falls at the end of the parent <action> node, not in its right place in the middle of the sentence.
Any idea ?
Alexandre