Fix brace matching for xml.