class ProvinceInfoParserTask extends AsyncTask<Void, Void, List<ProvinceModel>> {

	@Override
	protected List<ProvinceModel> doInBackground(Void... params) {

		if (null == mContext)
			return null;

		List<ProvinceModel> provinceList = new ArrayList<ProvinceModel>();

		try {
			SAXParserFactory sax = SAXParserFactory.newInstance();// 创建解析器
			XMLReader reader = sax.newSAXParser().getXMLReader();
			InputStream in = mContext.getAssets().open("city.xml");

			reader.setContentHandler(new ProvinceInfoHandler(provinceList));// 为reader设置内容处理器
			reader.parse(new InputSource(in));// 开始解析文件
		} catch (SAXException e) {

			e.printStackTrace();
		} catch (IOException e) {

			e.printStackTrace();
		} catch (ParserConfigurationException e) {

			e.printStackTrace();
		}

		return provinceList;
	}

	public  ProvinceInfoParserTask(Context context, Handler handler);

}