Added support for handling single quotes in xml