Feature/mb element mb document as xml fix 3.2.0.20

Fixes the output of MBDocument's "asXMLWithLevel" method. HTML output is now also escaped in attribute values.