[Expat-discuss] expat "junk after element" parsing bug?
Fred L. Drake, Jr.
fdrake at acm.org
Mon Apr 7 11:05:48 EDT 2003
Lawrence W. Leung writes:
> I'm using a port of expat to pocketpc included in PocketSOAP 1.4 and
> whenever I pass something like:
>
> "<ContextTuple></ContextTuple><ContextTuple></ContextTuple>"
>
> to XML_Parse() it fails, complaining of "junk after element" at the
> beginning of the second ContextTuple start tag.
It should.
> I'm not sure exactly what
> version of expat this is. Has there been a bug like this? (If so, is
> there any easy fix?) Or am I doing something wrong?
You application code is not suspect at this point. You're using an
invalid document; XML only allows one top-level element. Only
comments, processing instructions, and whitespace are allowed after
the document element.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation
More information about the Expat-discuss
mailing list