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++ Core » XML parsing error
Re: XML parsing error [message #16849 is a reply to message #16847] Thu, 17 July 2008 00:09 Go to previous messageGo to previous message
bytefield is currently offline  bytefield
Messages: 210
Registered: December 2007
Experienced Member
You forgot to check for some tags...
<timing>
  <date>
    <day>15</day>
    <month>7</month>
  </date>
  <time>
    <hours>19</hours>
    <minutes>35</minutes>
  </time>
</timing>

... and because of that you get in loop, check for EOF, than you check for "new" tag, after that you check for "message" tag but because the next tag is "timing" the else part get executed and there you check for "sender" and because the current tag isn't "sender" tag you skip to next tag. Now the current tag is "date" and you get to the begin of the loop. You check for "new" tag and because current tag is "date" that if never get executed and you cpu run that loop again and again.

Just go trough your program step by step and see what I've explained above.

Edit:
Quote:

but isn't this else case must prevent infinite loop ??

you should have an else case also for "new" tag.


cdabbd745f1234c2751ee1f932d1dd75

[Updated on: Thu, 17 July 2008 00:12]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NULL
Next Topic: XMLNode error
Goto Forum:
  


Current Time: Wed May 08 22:09:58 CEST 2024

Total time taken to generate the page: 0.02001 seconds