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 Thu Jun 19, 2025 5:55 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 10181 • Total topics 2864 • Total members 2095