convenient python two-liner would do it for me:
However, it's missing some of the text. For example, the following>>from xml.etree.ElementTree import *
from cStringIO import StringIO
root = parse(StringIO(xml)).getroot()
' '.join([n.text for n in root.getiterator() if n.text is not None])
XML:
Returns me a empty string. Seems the "<sp />" tag is borking it.>>xml = "<highlight><sp />Bar</highlight>"
Also, the for the following XML:
I only get "Bar". It's missing the trailing colon.>>xml = "<highlight><ref>Bar</ref>:</highlight>"
I'm not that experienced with XML so perhaps I am just missing
something here. Please enlighten me.
Thanks,
Brian