[TASK] Update string compare

Signed-off-by: Ramakrishnan P <ramakrishanan_p@kalycito.com>
[TASK] Move XmlParserError to new file.

 - Updated the error strings to const

Signed-off-by: Ramakrishnan P <ramakrishanan_p@kalycito.com>