removed XML and html escape character incompatibilities. only works flawlessly for xml now..