Fixed bugs in reading structures where parser erroneously dumps unparsed contents of buffer.
Fixed detection of end of empty CDATA structure.