Removing stringToDoc and replace it with the identical jQuery function $.parseXML.