>>From: "abhishekhp" <abhishekhp at infy dot com>
>>Thanks for the help. Is there another way of stopping the parser,
>>other than throwing an exception?
One alternative that you could consider is using a regular expression to
capture just the text you want, e.g.
.*?<foo\w.*?>\w*(.*?)\w*</foo\w*>
or something like that and then take the first subexpression. (You would want
a prefix match...) The Jakarta ORO classes are nice for this purpose; the
Jakarta regexp classes have some problems with recursion depth when processing
large inputs.
-- PB
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]