Changeset 434

Show
Ignore:
Timestamp:
06/03/08 11:53:39 (6 months ago)
Author:
bellmich
Message:

adding comment and debug output to demonstrate libxml2 2.6.32 parser problems

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libsyncml/parser/sml_xml_parse.c

    r432 r434  
    230230                        case XML_NODE_CDATA: 
    231231                        case XML_NODE_TEXT: 
    232                                 rc = xmlTextWriterWriteRaw(writer, xmlTextReaderConstValue(parser->reader)); 
     232                                // FIXME: The parser removes CR from the second chunk 
     233                                // FIXME: of an item of moreData. This makes the received item 
     234                                // FIXME: length invalid. The sender definitely 
     235                                // FIXME: sends the CR LF correctly (verified via 
     236                                // FIXME: wireshark and debug output of smlXmlParserStart) 
     237                                // FIXME: but it is missing in data. 
     238                                char const *data = xmlTextReaderConstValue(parser->reader); 
     239                                smlTrace(TRACE_INTERNAL, "%s: from reader: %s", __func__, data); 
     240                                rc = xmlTextWriterWriteRaw(writer, data); 
    233241                                if (rc < 0) { 
    234242                                        smlErrorSet(error, SML_ERROR_GENERIC, "Unable to add string");