|
|
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   |
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
|
|
|
|
|
|
Re: XML parsing error [message #16865 is a reply to message #16864] |
Thu, 17 July 2008 20:55  |
captainc
Messages: 278 Registered: December 2006 Location: New Jersey, USA
|
Experienced Member |
|
|
I didn't have much luck on XmlNode, but once I got the parsing working I didn't give it another thought. I'll give it a go. Thanks.
|
|
|
Goto Forum:
Current Time: Fri May 09 11:29:18 CEST 2025
Total time taken to generate the page: 0.01006 seconds
|
|
|