Java tutorial
//package com.java2s; import org.xml.sax.ContentHandler; import org.xml.sax.SAXException; public class Main { public static void text(final ContentHandler handler, final String value) throws SAXException { handler.characters(value.toCharArray(), 0, value.length()); } }