(I don't own a PC)
on Windows machine, writing text/html payload adds dirty fragments link.
The <!--StartFragment--> and <!--EndFragment--> are messing up with the xml tree, causing failure of parse. to cater this, either
- add a pre-defined query map
- make query attribute based, not path based.