Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#26 closed defect (fixed)

SAX reader is unable to read data in incremental mode

Reported by: vadim.godunko Owned by: somebody
Priority: blocker Milestone: 0.0.6
Component: Matreshka - XML Processor Version:
Keywords: Cc:


To reproduce Test_Input_Source must be written and for sequential call to its Read subprogram it must:

  • returns below string for first call:
    <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='' id='2626941369' from='' version='1.0' xml:lang='ru'>
  • returns empty string for second call
  • returns below string for third call:
    <stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><compression xmlns=''><method>zlib</method></compression><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism></mechanisms><register xmlns=''/></stream:features>

Test driver must creates SAX_Simple_Reader, SAX_Events_Writer and Test_Input_Source objects; sets up reader in incremental mode and calls reader two times. Test is passed when SAX_Events_Writer reports expected sequence of SAX events.

Change History (9)

comment:1 by vadim.godunko, 11 years ago

Component: Matreshka - LeagueMatreshka - XML
Priority: majorblocker

comment:2 by vadim.godunko, 11 years ago

(In [935]) Renaming, reformatting and bug fixes for test.

Add to build system.

Refs #26.

comment:3 by vadim.godunko, 11 years ago

(In [940]) Fix bug in test.

Refs #26.

comment:4 by vadim.godunko, 11 years ago

(In [943]) Reset current position to base position to restart scanning on next
round when end of chunk of data is detected.

Refs #26.

comment:5 by vadim.godunko, 11 years ago

(In [944]) Reorganize test.

Refs #26.

comment:6 by vadim.godunko, 11 years ago

(In [945]) Remove spaces at the end of line in expected data.

Refs #26.

comment:7 by vadim.godunko, 11 years ago

(In [946]) Add special circuite to handle end of tag sequences in incremental mode
to allows to application to process start/end/empty tags immidiately
when data is readed.

Refs #26.

comment:8 by vadim.godunko, 11 years ago

Resolution: fixed
Status: newclosed

comment:9 by vadim.godunko, 11 years ago

Milestone: 0.1
Note: See TracTickets for help on using tickets.