Code example for XmlPullParserFactory

Methods: setNamespaceAware

0
 
    public XmlPullParserFactory getXPPFactory() throws XmlPullParserException {
        if (xppFactory == null) {
            xppFactory = XmlPullParserFactory.newInstance(MXParser.class.getName(), null);
        } 
        xppFactory.setNamespaceAware(true);
        return xppFactory;
    } 
 
    public void setXPPFactory(XmlPullParserFactory xppFactory) {
        this.xppFactory = xppFactory;
    } 
 
    /** 
     * @return the <code>DocumentFactory</code> used to create document objects 
     */ 
    public DocumentFactory getDocumentFactory() { 
        if (factory == null) {
            factory = DocumentFactory.getInstance();
        } 
        return factory;