@Test public void testStripIllegalChars() throws Exception { assertEquals("hello", stripIllegalXmlCharacters("hel" + ILLEGAL_XML_CHAR + "lo")); assertEquals("hello", stripIllegalXmlCharacters("hello")); }
public static String stripIllegalXmlCharacters(String input) { return input.replaceAll(ILLEGAL_XML, ""); }
XmlHelper { public static String stripIllegalXmlCharacters(String input) { return input.replaceAll(ILLEGAL_XML, ""); } }
XmlHelper { public static String stripIllegalXmlCharacters(String input) { return input.replaceAll(ILLEGAL_XML, ""); }  }
XmlHelper { public static String stripIllegalXmlCharacters(String input) { return input.replaceAll(ILLEGAL_XML, ""); }  @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 { public static String stripIllegalXmlCharacters(String input) { return input.replaceAll(ILLEGAL_XML, ""); }  @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; }