xerces-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Decoker, Lydie \(Lydie\)" <deco...@lucent.com>
Subject RE: Getting SAX Exception Content is not allowed in prolog. when using my code on Unix platform
Date Wed, 18 Oct 2006 06:07:29 GMT
Yeap. In fact the way I discover the error was by printing the schema
filename.

Lydie 

-----Original Message-----
From: Prashant [mailto:prashant@pramati.com] 
Sent: Wednesday, October 18, 2006 06:29
To: j-users@xerces.apache.org
Subject: Re: Getting SAX Exception Content is not allowed in prolog.
when using my code on Unix platform

Umm, May be the error message could have included the XML file name that
it is currently peeking into. That could have pointed you in right
direction right away. eh ?

-Prashant

Decoker, Lydie (Lydie) wrote:
> Ok I think today I reached the top of my stupidity performance .... 
> instead of giving the schema file, I gave the schema directory .... 
> but to defend myself, the error message was not so explicit. :oD
>  
> L.
>
>
------------------------------------------------------------------------
>     *From:* Decoker, Lydie (Lydie) [mailto:decoker@lucent.com]
>     *Sent:* Tuesday, October 17, 2006 16:12
>     *To:* j-users@xerces.apache.org
>     *Subject:* RE: Getting SAX Exception Content is not allowed in
>     prolog. when using my code on Unix platform
>
>     I disable the validation feature and my xml is parsing. The
>     problem is so in the xsd file. I was looking in the xml.
>      
>     Lydie.
>
>
------------------------------------------------------------------------
>         *From:* keshlam@us.ibm.com [mailto:keshlam@us.ibm.com]
>         *Sent:* Tuesday, October 17, 2006 15:48
>         *To:* j-users@xerces.apache.org
>         *Subject:* RE: Getting SAX Exception Content is not allowed in
>         prolog. when using my code on Unix platform
>
>         >SAX Exception Content is not allowed in prolog.
>
>         This means you have something before the root element which is
>         not permitted to appear there according to the XML spec. Make
>         sure that NOTHING comes before the XML declaration except the
>         optional byte-order mark, and that NOTHING comes between the
>         XML declaration and the outermost element except comments,
>         processing instructions, and whitespace.
>
>
>         ______________________________________
>         "... Three things see no end: A loop with exit code done
wrong,
>         A semaphore untested, And the change that comes along. ..."
>         -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish
>         (http://www.ovff.org/pegasus/songs/threes-rev-11.html)
>


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org


Mime
View raw message