Friday, August 3, 2001 07:41 AM
I need to check for special chars in the data within an XML document that I have stored as a String variable in a Java program. The likely characters that could be in the data that could cause problem with XML syntax may be chars like '
<', '>', '/', '&' etc... These characters being part of XML syntax, make it difficult to be searched in a string that contains data within the XML document having XML tags/Syntax. Though I can always transform the String into an object tree & traverse, it would be too complex a coding for a simple requirement like mine & I donot have that much time... Somebody please reply at the earliest.