Hi,
I suppose no other way. Or you can stop the parse thread from other thread. But it will trouble us much either.
Cyfer(Zhang, Xin)
From: "abhishekhp" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: <[EMAIL PROTECTED]> Subject: RE: Using SAX Parser to obtain value of an element Date: Thu, 4 Oct 2001 11:53:54 +0530
Hi, Thanks for the help. Is there another way of stopping the parser, other than throwing an exception?
-abhishek.
-----Original Message----- From: Paul Brown [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 03, 2001 9:18 PM To: [EMAIL PROTECTED] Subject: Re: Using SAX Parser to obtain value of an element
---------- Original Message ---------------------------------- From: [EMAIL PROTECTED] >Why not throw an exception in your content handler when you get >what you need?
This is a good idea; be aware that you'll want to just let the parser finish if it's a small document; throwing exceptions is actually very expensive in terms of time.
-- Paul
>From: "abhishekhp" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: <[EMAIL PROTECTED]> >Subject: Using SAX Parser to obtain value of an element >Date: Wed, 3 Oct 2001 10:23:05 +0530 > >Hi, >I am using Xerces 1.4.3 to validate XML documents against schemas. I >know the name of an element whose value I need. Is it possible to use a >SAX Parser to obtain the value of this element, without parsing the >entire document? >e.g. ><Name> > <FirstName>abc</FirstName> > <LastName>xyz</LastName> ></Name> > >Is it possible to obtain the value, 'abc' of the element <FirstName>, >without parsing the entire document? > >TIA, >abhishek. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
