Hi, Thanks for the reply. Is there any easy way of handling this? or If you know a place where I can get some examples, please let me know.
Thanks, Ranjith ----- Original Message ----- From: "Michael Glavassevich" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 06, 2005 9:39 AM Subject: Re: Dropping tag content upto a special character when parsing XML > characters() may be called multiple times for contiguous text. It's one of > the finer details of SAX. This gets reported so often it has its own FAQ > [1]. > > [1] http://xml.apache.org/xerces2-j/faq-sax.html#faq-2 > > "Ranjith Kodikara" <[EMAIL PROTECTED]> wrote on 01/05/2005 10:30:59 PM: > > > Hi, > > I am parsing an XML file with SAX with java. My java class extends > > DefaultHandler and I m overrriding startElement(), characters() and > > endElement() methods. Special characters like ',< are replaced with > > appropriate strings like ' and > etc in my xml document. I > > replace the apostrophe( ' ) symbol with ' for it to be <book>Rober > Nox > > 's Stories</book> and in Internet explorer it displays the tag > > content accurately. > > The problem is when a string in xml file contains a ' symbol, it > > truncates the content of the string up to ' symbol. > > For example if there is an element like <book>Rober Nox's Stories</book> > > , the parser outputs 's Stories instead of Rober Nox's Stories. > > > > Is there any way to overcome this problem? Any help is greatly > appreciated. > > > > Regards, > > Ranjith > > > > > > [image removed] > > > > Ranjith Kodikara > > Systems Engineer > > > > DMS Software Technologies > > 165, Dharmapala Mawatha, > > Colombo 00700 > > > > [EMAIL PROTECTED] > > > > tel: > > tel2: > > > > +94-11-2673973 > > +94-11-2696648 > > Michael Glavassevich > XML Parser Development > IBM Toronto Lab > E-mail: [EMAIL PROTECTED] > E-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > 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]