Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 14265
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: Tue Jul 08 05:15:11 CEST 2025

Total time taken to generate the page: 0.05766 seconds