Code example for XmlPullParserFactory

Methods: newSerializer

0
	private String createElement(String contentType_QNAME, Class<?> class1,
			Object object, Object value) {
		if (value != null) {
			StringWriter writer = new StringWriter();
			try { 
				XmlSerializer serializer = XML_SERIALIZER_FACTORY
						.newSerializer();
				serializer.setOutput(writer);
				serializer = serializer.startTag(null, contentType_QNAME);
				if (class1.equals(InviteConnectType.class)) {
					XppUtils.setElementValue(serializer,
							((InviteConnectType) value).value());
				} else if (class1.equals(NetworkUpdateReturnType.class)) {
					XppUtils.setElementValue(serializer,
							((NetworkUpdateReturnType) value).value());
				} else if (class1.equals(NetworkUpdateContentType.class)) {
					XppUtils.setElementValue(serializer,
							((NetworkUpdateContentType) value).value());
				} else { 
					XppUtils.setElementValue(serializer, String.valueOf(value));
Contextual code suggestions in your IDE  Get Codota for Java