sample xml ,
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Issue>
<Snippet>
sri;;
hiil
bye;
tc;
</Snippet>
</Issue>
Is it possible to get the entire characters inside snippet tag ??
if this is the implementation,
public void startElement(String uri, String localName,
String qName, Attributes attributes) throws SAXException {
temp = "";
if (qName.equalsIgnoreCase("Issue")) {
acct = new Account();
public void endElement(String uri, String localName, String qName)
throws SAXException {
if (qName.equalsIgnoreCase("Issue")) {
// add it to the list
accList.add(acct);
else if(qName.equalsIgnoreCase("Snippet"))
{
acct.setPrimarySnippet(temp);
}
O/p is tc; but i need entire values inside the snippet tag to get printed.