The xmq format can exactly represent the content of the xml/html/json file and can therefore be converted back to xml/html/json after any editing has been done. For html you can use the suffix htmq to ...