You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by "Roytman, Alex" <ro...@peacetech.com> on 2000/05/12 17:28:18 UTC

How to get rid of whitespace between tags

I am sure this has been discussed on this mailing list multiple times and I
apologize for bringing it up again. 

Is it possible to instruct parser to ignore whitespace between tags. While
preserving those white spaces might be very important in some cases (ie. for
formatting purposes) it is very inconvenient in many others. Especially when
you XML has DTD which says that ELEMENT my-element consists of
my-sub-elements only but you still get bunch of text nodes inside.

Thank you very much in advance

Alex Roytman