I need to examine several hundred thousand text strings and accumulate a count of the number of strings containing "well-formed XML" (i.e. can be parsed with saxBuilder and then used) vs "poorly-formed" (i.e. something in the string prevents successful parsing).  My (limited) experience is that an exception (such as a JDOMException thrown by Saxbuilder.build()) will halt execution.<br>
How can I validate the XML in these strings without halting execution?<br>Thanks!<br>Cliff<br>