Menu

#55 XMLReader to output ignorableWhitespace where possible

open
nobody
None
5
2007-03-11
2007-03-11
Trejkaz
No

It would be good if when text is just whitespace in an area where text usually can't occur, it were output as an ignorableWhitespace() instead of a characters() SAX event.

It's only a nice-to-have but to be realistic, it's probably hard to implement because it requires the XMLReader to be able to determine whether the space between two given tags can contain "real" text or not. For instance between </p> and <p> any whitespace can be considered ignorable, whereas between </b> and <b> this is not the case.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.