@Test public void testCreateDocument() throws Exception { Document d = XmlHelper.createDocument(EXAMPLE_XML); assertNotNull(d); XmlUtils xu = new XmlUtils(); xu.setSource(d); assertEquals("text body", xu.getSingleTextItem("/document/content")); assertNotNull(createDocument(EXAMPLE_XML, DocumentBuilderFactoryBuilderTest.createNamespaceContext())); assertNotNull(createDocument(EXAMPLE_XML, (NamespaceContext) null)); }
@Deprecated public static Document createDocument(AdaptrisMessage msg) throws ParserConfigurationException, IOException, SAXException { return createDocument(msg, false); }
XmlHelper { @Deprecated public static Document createDocument(AdaptrisMessage msg) throws ParserConfigurationException, IOException, SAXException { return createDocument(msg, false); } }
XmlHelper { @Deprecated public static Document createDocument(AdaptrisMessage msg) throws ParserConfigurationException, IOException, SAXException { return createDocument(msg, false); }  }
XmlHelper { @Deprecated public static Document createDocument(AdaptrisMessage msg) throws ParserConfigurationException, IOException, SAXException { return createDocument(msg, false); }  @Deprecated static XmlUtils createXmlUtils(AdaptrisMessage msg); @Deprecated static XmlUtils createXmlUtils(AdaptrisMessage msg, NamespaceContext ctx); static XmlUtils createXmlUtils(AdaptrisMessage msg, NamespaceContext ctx, DocumentBuilderFactoryBuilder builder); @Deprecated static Document createDocument(AdaptrisMessage msg); @Deprecated static Document createDocument(AdaptrisMessage msg, boolean namespaceAware); static Document createDocument(AdaptrisMessage msg, DocumentBuilderFactoryBuilder builder); static Document createDocument(AdaptrisMessage msg, DocumentBuilderFactoryBuilder builder, boolean newDocOnFailure); @Deprecated static Document createDocument(AdaptrisMessage msg, NamespaceContext namespaceContext); @Deprecated static Document createDocument(String s); @Deprecated static Document createDocument(String s, NamespaceContext namespaceContext); @Deprecated static Document createDocument(String s, boolean namespaceAware); static Document createDocument(String s, DocumentBuilderFactoryBuilder builder); static Document createDocument(String s, DocumentBuilderFactoryBuilder builder, boolean newDocOnFailure); static Document createDocument(InputStream in, DocumentBuilderFactoryBuilder builder); static Document createDocument(InputStream in, DocumentBuilderFactoryBuilder builder, boolean newDocOnFailure); static String safeElementName(String input, String defaultIfBlank); static String stripIllegalXmlCharacters(String input); static void writeXmlDocument(Document doc, AdaptrisMessage msg, String encoding); static void writeXmlDocument(Document doc, AdaptrisMessage msg, String encoding, Transformer serializer); static String getXmlEncoding(AdaptrisMessage msg, String enc); }
XmlHelper { @Deprecated public static Document createDocument(AdaptrisMessage msg) throws ParserConfigurationException, IOException, SAXException { return createDocument(msg, false); }  @Deprecated static XmlUtils createXmlUtils(AdaptrisMessage msg); @Deprecated static XmlUtils createXmlUtils(AdaptrisMessage msg, NamespaceContext ctx); static XmlUtils createXmlUtils(AdaptrisMessage msg, NamespaceContext ctx, DocumentBuilderFactoryBuilder builder); @Deprecated static Document createDocument(AdaptrisMessage msg); @Deprecated static Document createDocument(AdaptrisMessage msg, boolean namespaceAware); static Document createDocument(AdaptrisMessage msg, DocumentBuilderFactoryBuilder builder); static Document createDocument(AdaptrisMessage msg, DocumentBuilderFactoryBuilder builder, boolean newDocOnFailure); @Deprecated static Document createDocument(AdaptrisMessage msg, NamespaceContext namespaceContext); @Deprecated static Document createDocument(String s); @Deprecated static Document createDocument(String s, NamespaceContext namespaceContext); @Deprecated static Document createDocument(String s, boolean namespaceAware); static Document createDocument(String s, DocumentBuilderFactoryBuilder builder); static Document createDocument(String s, DocumentBuilderFactoryBuilder builder, boolean newDocOnFailure); static Document createDocument(InputStream in, DocumentBuilderFactoryBuilder builder); static Document createDocument(InputStream in, DocumentBuilderFactoryBuilder builder, boolean newDocOnFailure); static String safeElementName(String input, String defaultIfBlank); static String stripIllegalXmlCharacters(String input); static void writeXmlDocument(Document doc, AdaptrisMessage msg, String encoding); static void writeXmlDocument(Document doc, AdaptrisMessage msg, String encoding, Transformer serializer); static String getXmlEncoding(AdaptrisMessage msg, String enc); static final String FALLBACK_TRANSFORMER_FACTORY_IMPL; }