You *still* haven't shown us the declaration and initialization of the java variable XMLString.
Please stop asking the same question again and again, while ignoring the responses.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference