2010/8/20 Leonard Wörteler <leonard.woerteler@uni-konstanz.de>
Wouldn't be the simplest solution to your problem to replace the
characters '{' and '}' in the serialized XML string with their character
entities ("{" and "}" respectively)? I can't think of
situations when it would destroy the markup and the parsing process
converts them back either way.