XML to BTX convenience method

Ignores whitespace and strips comments