Escape invariants in XML format