join xml element.text in python -
is there function in python joining element.text same element.tag names?
example:
p> text <i>(</i> <i>something</i> <i>something</i> <i>)</i> text <i>proň, zač</i> end of paragraph </p> what want:
p> text <i>(something something)</i> text <i>proň, zač</i> end of paragraph </p>
is there function in python joining element.text same tags name?
no, must code yourself. reason library deals xml, not xhtml. in general, <tag>a</tag><tag>b</tag> not have same meaning <tag>ab</tag>. in fact, in html, consolidating adjacent <p> or <block> tags change meaning of text.
Comments
Post a Comment