  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Issue with xml prolog | Issue with xml prolog 2007-11-23 - By Abhishek Parwal
Back
Thanks Michael But the xml declaration was not giving error in this case:
<attribute ><value> <?xml version="1.0" encoding="ISO-8859 (See http://ISO-8859.ora-code.com)-1"?> <note id="1"> HI </note> </value></attribute>
The difference here is id="1". Pls explain why it is not giving any error on parsing it.
-Abhishek
On Thu, 2007-11-22 at 16:30 +0000, Michael Kay wrote: > An XML declaration is only allowed right at the beginning of the file. > > Michael Kay > http://www.saxonica.com/ > > > -- --Original Message-- -- > > From: jdom-interest-bounces@(protected) > > [mailto:jdom-interest-bounces@(protected)] On Behalf Of Abhishek Parwal > > Sent: 22 November 2007 15:37 > > To: jdom-interest@(protected) > > Subject: [jdom-interest] Issue with xml prolog > > > > Hi, > > > > I am getting following error when i try to parse the > > following xml data <attribute ><value> <?xml version="1.0" > > encoding="ISO-8859 (See http://ISO-8859.ora-code.com)-1"?> <note> HI </note> > > </value></attribute> There are no whitespaces before prolog > > of xml (ie before <?xml..) and also not before <attribute>. > > But it still gives me the folllowing error. > > > > org.jdom.input.JDOMParseException: Error on line 1: The > > processing instruction target matching "[xX][mM][lL]" is not allowed > > > > Most of the places i googled people tell to remove white > > spaces before prolog to correct it. But here in my xml data > > there are no white spaces before prolog. > > > > Please suggest where i am going wrong. > > > > Thanks and Regards, > > Abhishek > > > > > > > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ > > To control your jdom-interest membership: > > http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected) > > rhost.com >
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
|
|
 |