You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Oro smith <or...@sify.com> on 2004/06/07 12:55:01 UTC

XML parsing failed error

im getting the error

XML parsing failed: no element found (Line: 2, Character: 0)

What is the cause of this error??

the xsp is given below.


<?xml version="1.0"?>
<xsp:page
           language="java"
          xmlns:xsp="http://apache.org/xsp"
           xmlns:util="http://apache.org/xsp/util/2.0"
          xmlns:xsp-session-fw="http://apache.org/xsp/session-fw/1.0">

 <xsp-session-fw:getxml context="authentication" path="/authentication/authentication/ID"/>

</xsp:page>




-------------------------------------------------
Still single? Click here to find the perfect match.
                                                                                
http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141

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


Re: XML parsing failed error

Posted by Ugo Cei <u....@cbim.it>.
The <xsp:page> element must have a single child element which will be 
the root element of the produced document:

<xsp:page>
   <some-element>
    <xsp-session-fw:getxml context="authentication" 
path="/authentication/authentication/ID"/>
   </some-element>
</xsp:page>

	Ugo

Oro smith wrote:
> im getting the error
> 
> XML parsing failed: no element found (Line: 2, Character: 0)
> 
> What is the cause of this error??
> 
> the xsp is given below.
> 
> 
> <?xml version="1.0"?>
> <xsp:page
>            language="java"
>           xmlns:xsp="http://apache.org/xsp"
>            xmlns:util="http://apache.org/xsp/util/2.0"
>           xmlns:xsp-session-fw="http://apache.org/xsp/session-fw/1.0">
> 
>  <xsp-session-fw:getxml context="authentication" path="/authentication/authentication/ID"/>
> 
> </xsp:page>
> 
> 
> 
> 
> -------------------------------------------------
> Still single? Click here to find the perfect match.
>                                                                                 
> http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?141
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


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