<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 4: getPCDATA() calls return extra breaks</title><link href="https://sourceforge.net/p/xml2java/bugs/4/" rel="alternate"/><link href="https://sourceforge.net/p/xml2java/bugs/4/feed.atom" rel="self"/><id>https://sourceforge.net/p/xml2java/bugs/4/</id><updated>2002-12-04T18:29:40Z</updated><subtitle>Recent changes to 4: getPCDATA() calls return extra breaks</subtitle><entry><title>getPCDATA() calls return extra breaks</title><link href="https://sourceforge.net/p/xml2java/bugs/4/" rel="alternate"/><published>2002-12-04T18:29:40Z</published><updated>2002-12-04T18:29:40Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net77d1a131d2c110745ba5ecb42b358330c9829622</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The getPCDATA() call always returns extra&lt;br /&gt;
\n \t and whitespaces.  To resolve when you &lt;br /&gt;
automatically generate the XMLHandler please &lt;/p&gt;
&lt;p&gt;add &lt;/p&gt;
&lt;p&gt;this.sb = null; &lt;/p&gt;
&lt;p&gt;to  the   startElement() &lt;br /&gt;
and the  endElement() &lt;/p&gt;
&lt;p&gt;functions.&lt;/p&gt;
&lt;p&gt;public void startElement(String uri,String &lt;br /&gt;
localName,String qName,Attributes attributes) &lt;br /&gt;
throws SAXException {&lt;/p&gt;
&lt;p&gt;this.sb =null;  //add this line for fix&lt;br /&gt;
this.processPCData();&lt;br /&gt;
this.getSubHandler(localName).startElement&lt;br /&gt;
(uri,localName,qName,attributes);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;public void endElement(String uri,String &lt;br /&gt;
localName,String qName) throws SAXException {&lt;br /&gt;
this.processPCData();&lt;br /&gt;
((SubHandler) this.stack.peek()).endElement&lt;br /&gt;
(uri,localName,qName);&lt;br /&gt;
this.sb =null;  //add this line for fix&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;
Inxightfool&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>