Hello rajashri ,
String a;
xml tag like this:
<innertag>tom & jerry</innertag>
Expected output:tom & jerry
you get the output:tom
@Override
public void startElement(String namespaceURI, String localName,
String qName, Attributes atts) throws SAXException {
if (localName.equals("outertag")) {
this.in_outertag = true;
}else if (localName.equals("innertag")) {
a=qName; 
this.in_innertag = true;
}else if (localName.equals("mytag")) {
this.in_mytag = true;
}else if (localName.equals("tagwithnumber")) {
String attrValue = atts.getValue("thenumber");
int i = Integer.parseInt(attrValue);
myParsedExampleDataSet.setExtractedInt(i);
}
}
@Override
public void characters(char ch[], int start, int length) {
if(this.innertag){
a+=String.valueOf(ch,start,length);
}
}