int startMarkerIndex = xmlString.indexOf(START_MARKER);
int endMarkerIndex = xmlString.indexOf(END_MARKER);
if (startMarkerIndex == -1 || endMarkerIndex == -1) {
throw new SyncException("Improper data from the server");
//Dialog.inform("Improper data from the server");
//return null;
}
//Check if xml is got an utf-8 encoding in header. TODO: Generalize to other encodings.