[xml] Parser Error: Extra content, where there is none.
- From: martyn 2 russell bt com
- To: xml gnome org
- Subject: [xml] Parser Error: Extra content, where there is none.
- Date: Mon, 13 May 2002 14:19:37 +0100
Hi,
Im parsing the following input, and the parser throws the following error, I
have re-formatted below that to make it clear exactly what has been
received. As you may have already guessed, im using Jabber. As I receive
each streamed message, it is parsed and then unlinked from the tree,
therefore, this is the only xml on the tree when this error is given.
Original Input:
464 <-- '<presence from='cockersj coyote/Gabber'
to='russelm6 coyote'><status>I'm
away.</status><show>away</show><priority>9</priority><x
xmlns='jabber:x:delay' from='cockersj coyote/Gabber'
stamp='20020513T12:27:51'/></presence><presence
from='bootonlj coyote/Gabber' to='russelm6 coyote'><status>I'll be away
for a while.</status><show>xa</show><priority>9</priority><x
xmlns='jabber:x:delay' from='bootonlj coyote/Gabber'
stamp='20020513T12:38:06'/></presence>'
Entity: line 1: error: Extra content at the end of the document
er:x:delay' from='cockersj coyote/Gabber'
stamp='20020513T12:27:51'/></presence
^
Reformatted:
<presence from='cockersj coyote/Gabber' to='russelm6 coyote'>
<status>I'm away.</status>
<show>away</show>
<priority>9</priority>
<x xmlns='jabber:x:delay' from='cockersj coyote/Gabber'
stamp='20020513T12:27:51'/>
</presence>
<presence from='bootonlj coyote/Gabber' to='russelm6 coyote'>
<status>I'll be away for a while.</status>
<show>xa</show>
<priority>9</priority>
<x xmlns='jabber:x:delay' from='bootonlj coyote/Gabber'
stamp='20020513T12:38:06'/>
</presence>
The weird thing is, if the same xml is sent but as two separate sections
(for each presence xml block), the parse error does not occur! Does anyone
have any ideas as to why this is happening?
Regards,
Martyn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]