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

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -