@Override
        public void characters(char[] ch, int start, int length) throws SAXException {
            try {
                int end = start + length;
                while ((start < end) && (ch[start] <= ' ')) {
                    start++;
                }
                while ((start < end) && (ch[end - 1] <= ' ')) {
                    end--;
                }

                if(end != start)
                  wrtr.writeText(ch, start, end-start);
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }