commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qaiser Mehmood" <Qaiser.Mehm...@revolution.com>
Subject RE: help for The root element is required
Date Mon, 10 Apr 2006 19:28:12 GMT
The message is not repeating.This is the complete XML File :

<?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>

-----Original Message-----
From: Mark A Fortner [mailto:phidias51@yahoo.com] 
Sent: Monday, April 10, 2006 3:19 PM
To: Jakarta Commons Users List
Subject: Re: help for The root element is required

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




---------------------------------------------------------------------
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