Workaround for broken SimpleXML

See Issue #312 for details