U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Bug in xml parser?
Re: Bug in xml parser? [message #27273 is a reply to message #27272] Sat, 10 July 2010 12:37 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
aftershock wrote on Fri, 09 July 2010 16:55

Hi,

I wonder if there is bug in xml parser because of the following problem.

I use XMLRPC package.
I debuged the package. I can see this.
The server returns an xml which something like this:

<value><string>line1\nline2\nline3\n</string></value>

The parser returns a string which is "line1\nline2\nline3" without the final \n.
My question is .. Is this bug if the xml parser does not return the final \n?



Well, the problem is somewhat fuzzy...

Quote:


This is how I fixed it:
Add this line to xmlparser class definition:
void Preserve(bool b) { npreserve = b; }



I have implemented very similar fix, only instead of using npreserve I have used another bool attribute.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: navigate does not always work correctly
Next Topic: SliderCtrl max check
Goto Forum:
  


Current Time: Mon Sep 14 23:29:23 GMT+2 2026

Total time taken to generate the page: 0.00772 seconds