@Test void testParseWithDifferentEncoding() throws UnsupportedEncodingException { Document result = this.xml.parse("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><a>\u00E9</a>".getBytes("ISO-8859-1")); assertNotNull(result, "Failed to parse content"); assertEquals("a", result.getDocumentElement().getLocalName(), "Incorrect root node"); assertEquals("\u00E9", result.getDocumentElement().getTextContent(), "Incorrect content"); }
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);  }