Code example for XmlPullParserFactory

Methods: setNamespaceAware

0
	private MessageService messageService;
 
	static { 
		try { 
			factory = XmlPullParserFactory.newInstance(MXParser.class.getName(), null);
			factory.setNamespaceAware(true);
		} catch (XmlPullParserException e) {
			log.error("Error creating a parser factory", e);
		} 
	} 
 
	/** 
	 * Constructor. Set the server name from server instance. 
	 */ 
	protected XmppIoHandler() { 
		serverName = XmppServer.getInstance().getServerName();
	} 
 
	/** 
	 * Invoked from an I/O processor thread when a new connection has been 
	 * created.