Here are the examples of the java api class com.google.android.apps.picview.data.parser.PicasaPhotosSaxHandler taken from open source projects.
1. Photo#parseFromPicasaXml()
Project: picview-for-android
File: Photo.java
File: Photo.java
/** * Parses photos XML (a list of photo; the contents of an album). * * @param xmlStr * the photo XML * @return a list of {@link Photo}s */ public static List<Photo> parseFromPicasaXml(String xmlStr) { PicasaPhotosSaxHandler handler = new PicasaPhotosSaxHandler(); try { // The Parser somehow has some trouble with a plus sign in the // content. This is a hack to fix this. // TODO: Maybe we should replace all these special characters with // XML entities? xmlStr = xmlStr.replace("+", "+"); Xml.parse(xmlStr, handler); return handler.getPhotos(); } catch (SAXException e) { Log.e("Photo", e.getMessage(), e); } return new ArrayList<Photo>(); }