XMLFilter truncates XML

T

Timo Nentwig

Hi!

I implemented an XMLFilter and a ContentHandler. Both yet do nothing but
implementing the interface.

I use them as follows:

String filterClass = "my.Filter";
XMLFilter filter = (XMLFilter) Class.forName(filterClass).newInstance();
SAXReader reader = new SAXReader(new SAXParser());

filter.setParent(reader.getXMLReader());
filter.setContentHandler(new XMLWriter(new
OutputStreamWriter(System.out)));
filter.parse(document);

The SAXParser is the one from NekoHTML hence the input is a relatively
complex 30KiB HTML page.

The output is truncated and entities are removed from the output.


Does anybody have an idea why or what I might have done wrong?

Thanks a lot!
Timo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,017
Latest member
GreenAcreCBDGummiesReview

Latest Threads

Top