oSAXBuilder = new SAXBuilder();
oConfigFile = new File(PROGPATH + "Config.xml");
oConfigDocument = oSAXBuilder.build(oConfigFile);
oRootNode = oConfigDocument.getRootElement();
oServiceNodes= oRootNode.getChild("ServiceClasses");
oServiceClasses = oServiceNodes.getChildren();
for(int i = 0; i < oServiceClasses.size(); i++)
{
sClassName = ((Element)oServiceClasses.get(i)).getChildText("classname");
sDepiction = ((Element)oServiceClasses.get(i)).getChildText("depiction");
//String sDepiction1= new String(sDepiction.getBytes("gb2312"),"big5");
sServiceName = ((Element)oServiceClasses.get(i)).getChildText("servicename");
}
sDepiction讀出來是亂碼,有沒有用這種方式讀取讀出來不是亂碼