From: Madhusudan S. <sha...@gm...> - 2012-06-07 05:52:11
|
Hi, I am using JTidy to add closing tags to an unclosed XML. After adding the closing tags, it is removing space between two words. Example: Input to JTidy - <employee> Madhusudan Shastri <address> Bangalore India Output : <employee> Madhusudan Shastri <address> BangaloreIndia </address></employee> If you see the output, the closing tags </address> and </employee> are added properly, but "Bangalore India" has become "BangaloreIndia". This issue becomes more dangerous if there is an "href" present inside the text. For example. "<a href" becomes "<ahref>" Can anyone please tell me how to get rid of this issue? I am using the latest version of JTidy (jtidy-r938.jar). Waiting for your reply. Thanks and Regards, Madhusudan B. Shastri |