Hướng dẫn thực hành XmlPullParser đọc dữ liệu từ file xml trong android
Bước 1: Tạo project mới, tạo file xml dữ liệu để thực hành – Sau khi tạo project mới, bạn chuyển chế độ view thư mục về dạng Project Bước 2: Soạn nội dung file xml dữ liệu <?xml version=”1.0″ encoding=”utf-8″ ?> <products> <product> <name>Điện thoại</name> <price>300000</price> </product> <product> <name>Máy tính</name> <price>100000</price> </product> <product> <name>Tivi</name> […]