Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > XMLFilter truncates XML

Reply
Thread Tools

XMLFilter truncates XML

 
 
Timo Nentwig
Guest
Posts: n/a
 
      02-13-2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XMLFilter after Transforming alasdair.d XML 2 03-11-2010 11:02 AM
Response.OutputStream truncates XmlTextWriter? richardtallent ASP .Net 1 04-26-2006 10:24 PM
SAX XMLReader, XMLFilter, ContentHandler and XMLWriter question Jeff Calico XML 2 02-22-2006 06:13 PM
XMLFilter exception Timo Nentwig Java 0 02-07-2004 01:04 PM
Outlook truncates NG headers Solar^ Computer Support 3 09-03-2003 05:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57