in src/main/java/org/apache/cxf/cwiki/Page.java [170:190]
private void checkContentV2(final String c) {
try {
//if ("Content Based Router".equals(title)) {
// System.out.println(c);
//}
XMLReader reader = new Parser();
reader.setFeature(Parser.namespacesFeature, true);
reader.setFeature(Parser.namespacePrefixesFeature, true);
reader.setProperty(Parser.schemaProperty, new org.ccil.cowan.tagsoup.HTMLSchema() {
{
//problem with nested lists that the confluence {toc} macro creates
elementType("ul", M_LI, M_BLOCK | M_LI, 0);
}
});
reader.setContentHandler(new V2ContentHandler(this));
reader.parse(new InputSource(new StringReader(c)));
} catch (Exception e) {
e.printStackTrace();
}
}