Woodstox

WstxSAXParser doesn't report CDATA section accurately

Details

  • Type: Bug Bug
  • Status: In Progress In Progress
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 4.0.7
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    1

Description

Scenario: WstxSAXParser is used to parse a document containing a single large CDATA section. Coalescing is not enabled.
Expected behavior (cross-checked with a standard SAX parser): The SAX parser should report a single CDATA section (i.e. issue a single invocation of startCDATA/endCDATA), but submit several segments to the content handler (i.e. invoke "characters" multiple times).
Actual behavior: WstxSAXParser calls startCDATA/endCDATA for each segment.

Activity

Hide
Tatu Saloranta added a comment -

Interesting. Yes, this is incorrect behavior.

Show
Tatu Saloranta added a comment - Interesting. Yes, this is incorrect behavior.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: