commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark A Fortner <phidia...@yahoo.com>
Subject Re: help for The root element is required
Date Mon, 10 Apr 2006 19:18:35 GMT
This error usually occurs when you do not have a
single root in your XML file.  Do you have multiple
<message> elements in your file? 

--- Qaiser Mehmood <Qaiser.Mehmood@revolution.com>
wrote:

> Hi,
> 
> I am trying to parse this XML and getting error. The
> XMl is
> 
>  
> 
> <?xml version="1.0" ?>  <message>
> 
>     <application_name>Find Doc</application_name>
> 
>     <createDate>2006-04-10 15:05:56.984</createDate>
> 
>     <createdBy>1</createdBy>
> 
>     <id>0</id>
> 
>     <index_page>index.jsp</index_page>
> 
>     <message_text>Error on Index.jsp</message_text>
> 
>     <priority>5</priority>
> 
>     <signature>Revolution Team</signature>
> 
>     <user_id>1</user_id>
> 
>   </message>
> 
>  
> 
> Error is:
> 
>  
> 
> SEVERE: Parse Fatal Error at line 1 column 1: The
> root element is
> required in a well-formed document
> 
>  
> 
> Any Idea.
> 
>  
> 
> Qaiser Mehmood
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message