question: @ SuppressWarnings ( "unchecked" ) public static final HashSet readSetXml ( InputStream in ) throws XmlPullParserException , IOException { XmlPullParser parser = Xml . newPullParser ( ) ; parser . setInput ( in , null ) ; return ( HashSet ) readValueXml ( parser , new String [ 1 ] ) ; }
target:  Read a HashMap from an InputStream containing XML.  The stream can previously have been written by writeMapXml().