Code example for DocumentType

Methods: getPublicIdgetSystemId

0
					transformer.setParameter("targetBaseURL", uri);
				} 
			} 
			DocumentType doctype = doc.getDoctype();
			if (doctype != null) {
				if (doctype.getPublicId() != null) {
					transformer.setParameter("publicType", doctype.getPublicId());
				} 
				if (doctype.getSystemId() != null) {
					transformer.setParameter("systemType", doctype.getSystemId());
				} 
			} 
 
			transformer.transform(source, result);
		} catch (Exception ex) {
			Logger.getLogger(OdfXMLHelper.class.getName()).log(Level.SEVERE, null, ex);
			ex.printStackTrace();
		} 
	} 
 
Contextual code suggestions in your IDE  Get Codota for Java