Fix parse code for XML.