added missing code for XML parser