I am new in android development.Please see the Attached image also
このURLを確認してください -
http://mobileecommerce.site247365.com/admin/catdata.xml
android webviewで正しく表示されていない配布資料(Cat_name)cat_descを確認してください。
私はなぜ、誰かが私を助けることができないか、何か考えているのか分からないのですか?
これは、
public void startElement(String uri, String localName,String qName, Attributes
attributes) throws SAXException {
currentTag=localName;
Log.v("in start elelmet", "in start elelmet");
if(qName.equals("Table")){
buffer=new StringBuffer();
itemTagStarted=true;
item=new NewsItem();
}
}
@Override
public void characters(char[] ch, int start, int length)
throws SAXException {
if(itemTagStarted){
if(currentTag.equals("Cat_Name")){
item.setCatname(String.valueOf(ch,start,length));
}
if(currentTag.equals("Cat_id")){
item.setCatid(String.valueOf(ch,start,length));
}
if(currentTag.equals("Cat_Desc")){
buffer.append(String.valueOf(ch,start,length));
}
}
}
@Override
public void endElement(String uri, String localName,
String qName) throws SAXException {
currentTag="";
if(qName.equals("Table")){
itemTagStarted=false;
newsList.add(item);
}
if(qName.equals("Cat_Desc")){
item.setCatdesc(buffer.toString());
Log.v("Description data",buffer.toString());
}
}
@Override
public void endDocument() throws SAXException {
Log.v("parsing completed","parsing completed : array size : "+newsList.size());
}
});
}
catch(Exception ex)
{
ex.printStackTrace();
}