Any body knows how to personalize the conversion? In my case I need to exclude few html tags in order to support EDGAR standard http://www.sec.gov/info/edgar/ednews/edhtml.htm (something like html 4.0 but without a few tags).
Regards
It is currently Fri Jan 10, 2025 2:47 pm
// tag definition
HashMap<String, String> mappings = new HashMap<String, String>();
mappings.put("DATE", Calendar.getInstance().getTime().toString());
mappings.put("PAGE_BREAK", "<w:br w:type=\"page\" />");
// tag replacement
String doc = XmlUtils.marshaltoString(part.getJaxbElement(), true);
part.setJaxbElement((Document) XmlUtils.unmarshallFromTemplate(doc, mappings));
Total posts 10116 • Total topics 2845 • Total members 2076