fixed bugs found in xml:text method.
fixed bugs found in xml:text method.