Code example for XmlPullParserFactory

Methods: setNamespaceAware

0
    * will be used to parse the XML documents that are read by 
    * the framework. If XML pull is not available this will fail. 
    */ 
   public PullProvider() throws Exception { 
      this.factory = XmlPullParserFactory.newInstance();
      this.factory.setNamespaceAware(true);
   } 
    
   /** 
    * This provides an <code>EventReader</code> that will read from 
    * the specified input stream. When reading from an input stream 
    * the character encoding should be taken from the XML prolog or 
    * it should default to the UTF-8 character encoding. 
    *  
    * @param source this is the stream to read the document with 
    *  
    * @return this is used to return the event reader implementation 
    */ 
   public EventReader provide(InputStream source) throws Exception {
      XmlPullParser parser = factory.newPullParser();
Contextual code suggestions in your IDE  Get Codota for Java