Fix XML attribute escaping in AST

```xml
<type pretty="filter!"a & 1"">
```
have to be escaped to:
```xml
<type pretty="filter!&quot;a &amp; 1&quot;">
```