@Test void testParseNull() { Document result = this.xml.parse((String) null); assertNull(result, "Null Document input shouldn't be parsed"); result = this.xml.parse((byte[]) null); assertNull(result, "Null byte[] input shouldn't be parsed"); result = this.xml.parse((ByteArrayInputStream) null); assertNull(result, "Null InputStream input shouldn't be parsed"); result = this.xml.parse((LSInput) null); assertNull(result, "Null LSInput input shouldn't be parsed"); }
public Document parse(LSInput source) { return XMLUtils.parse(source); }
XMLScriptService implements ScriptService { public Document parse(LSInput source) { return XMLUtils.parse(source); } }
XMLScriptService implements ScriptService { public Document parse(LSInput source) { return XMLUtils.parse(source); } XMLScriptService(); }
XMLScriptService implements ScriptService { public Document parse(LSInput source) { return XMLUtils.parse(source); } XMLScriptService(); static String escape(Object content); static String escapeForAttributeValue(Object content); static String escapeForElementContent(Object content); static String unescape(Object content); Document createDOMDocument(); Document parse(LSInput source); Document parse(byte[] content); Document parse(String content); Document parse(InputStream stream); String serialize(Node node); String serialize(Node node, boolean withXmlDeclaration); String transform(Source xml, Source xslt); String transform(Document xml, Document xslt); String transform(byte[] xml, byte[] xslt); String transform(String xml, String xslt); }
XMLScriptService implements ScriptService { public Document parse(LSInput source) { return XMLUtils.parse(source); } XMLScriptService(); static String escape(Object content); static String escapeForAttributeValue(Object content); static String escapeForElementContent(Object content); static String unescape(Object content); Document createDOMDocument(); Document parse(LSInput source); Document parse(byte[] content); Document parse(String content); Document parse(InputStream stream); String serialize(Node node); String serialize(Node node, boolean withXmlDeclaration); String transform(Source xml, Source xslt); String transform(Document xml, Document xslt); String transform(byte[] xml, byte[] xslt); String transform(String xml, String xslt);  }