Hi, Lukas
While I am testing obex connection with libsyncml, it complains xml parsing 
error. After investigation, I found the following issue in our code:
We are using the same buffer for both input message and output message. If the 
previous input message ends with spaces or other garbage data, this part of 
garbage data will not be processed by our parser and will be sent out as output 
message to the remote. (In the libsyncml case, additional '\n' was sent before 
starting of xml document). 

We need to ensure we have fully processed the incoming data. One possible 
solution is: during the end tag of "SyncML", scan forward until end of buffer 
or another start tag of "SyncML". 

Thanks,
Chen,Congwu


_______________________________________________
os-libsynthesis mailing list
os-libsynthesis@synthesis.ch
http://lists.synthesis.ch/mailman/listinfo/os-libsynthesis

Reply via email to