Hi again friends... The problem again is that though i have succesfully implemented a SAX parser in my code... It is behaving wierdly. It jus skips the enteries after the & and goes to the next entry. Just wanted to know whether this is the typical working of SAX parser or m i implementing it wrongly???
I have implemented org.xml.sax.ContentHandler and have provided the following coding inside...
`
public void characters(char[] ch, int start, int length)
{
if(lastName.equals("id"))
{
String id = String.copyValueOf(ch, start, length);
CustomList.idvector.add(id);
}
else if(lastName.equals("subcategory"))
{
String subcategory = String.copyValueOf(ch, start, length);
CustomList.subcategoryvector.add(subcategory);
}
else if(lastName.equals("photo"))
{
String photo = String.copyValueOf(ch, start, length);
CustomList.photovector.add(photo);
}
else if(lastName.equals("name"))
{
String name = String.copyValueOf(ch, start, length);
CustomList.namevector.add(name);
}
}
`
There are elements with tags ,,,... and m taking those info into a vector... is this correct???
Now again problem is that i cant parse special character like "$" and such... is there any way we can catch these characters??