converted single quotes to double quotes in xml declaration
added check for double quotes