@Override
  public void initParsingContext(ParsingContext parsingContext) {
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    dbf.setValidating(false);

    try {
      DocumentBuilder docBuilder = dbf.newDocumentBuilder();
      docBuilder.setErrorHandler(new SAXErrorHandler());
      docBuilder.setEntityResolver(new UtilLoggingEntityResolver());
      parsingContext.getCustomConextProperties().put(DOC_BUILDER, docBuilder);
      parsingContext.getCustomConextProperties().put(PARTIAL_EVENT, "");
    } catch (ParserConfigurationException pce) {
      System.err.println("Unable to get document builder");
    }

  }
Get contents of CDATASection.

@param n CDATASection
@return text content of all text or CDATA children of node.
olv-core/src/main/java/pl/otros/logview/importer/UtilLoggingXmlLogImporter.java