/** * {@link XStreamDOM} holds infoset (which is 'escaped' from XStream's PoV), * whereas {@link HierarchicalStreamWriter} expects unescaped names, * so we need to unescape it first before calling into {@link HierarchicalStreamWriter}. */ // TODO: ideally we'd like to use the contextual HierarchicalStreamWriter to unescape, // but this object isn't exposed to us private String unescape(String s) { return REPLACER.unescapeName(s); }
/** * Unescapes XML-friendly name (node or attribute) * * @param name the escaped XML-friendly name * @return An unescaped name with original characters */ public String unescapeXmlName(String name) { return replacer.unescapeName(name); }
/** * {@link XStreamDOM} holds infoset (which is 'escaped' from XStream's PoV), * whereas {@link HierarchicalStreamWriter} expects unescaped names, * so we need to unescape it first before calling into {@link HierarchicalStreamWriter}. */ // TODO: ideally we'd like to use the contextual HierarchicalStreamWriter to unescape, // but this object isn't exposed to us private String unescape(String s) { return REPLACER.unescapeName(s); }
/** * Unescapes XML-friendly name (node or attribute) * * @param name the escaped XML-friendly name * @return An unescaped name with original characters */ public String unescapeXmlName(String name) { return replacer.unescapeName(name); }