[xsd-users] error: Not valid after content
Boris Kolpackov
boris at codesynthesis.com
Wed Sep 17 09:38:42 EDT 2008
Hi,
Akram Saye <akramsaye at yahoo.se> writes:
> Myconnector:: about to parse:
>
> <Skiva xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="../xml/test.xsd">
>
>
>
>
> <name>
>
> <DATE_TIME>2006-08-15T04:04:04</DATE_TIME>
>
> <år>16444</år>
>
> <tittle>E</title>
>
> </TRAIN>
>
>
>
> </name>
>
> <?xml version="1.0" encoding="utf-8" standalone="no" ?>
>
> Myconnector:: handle_input(): :17:7 error: Not valid after content
The XML you are trying to parse is invalid. It contains XML declaration
("<?xml ...") after the closing tag of the root element. This is invalid
per the XML spec.
Perhaps your connector started reading the next message and that's
where the XML declaration is coming from. XML declarations are placed
at the beginning of XML documents, before the opening tag of the root
element.
Boris
More information about the xsd-users
mailing list