added message checking through  xmlParseMemory() in Reader() thread to ensure correct delivery to subscriber.
changed parsing of buffer of msg_len in receive_xml() to ensure not to read junk.