cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhishek Goel <Abhishek.G...@morganstanley.com>
Subject xsp generating xml
Date Fri, 26 Jul 2002 15:18:45 GMT
hi,
i am generating my xml through xsp.
xml generated is like this(it's an examle of that tpe as original xml is
very large)

<?xml version="1.0" encoding="UTF-8" ?>
- <message xmlns:xsp="http://apache.org/xsp">
  <name>Hello</name>
  </message>

when i am passing this to sitemap  i am getting the error

"org.xml.sax.SAXParseException: The markup in the document preceding the
root element must be well-formed."
this is because of the "-" sign before <message> element.because as soon
as i remove that manually it works fine.

my xsp is

<?xml version="1.0"?>

<xsp:page language="java" xmlns:xsp="http://apache.org/xsp" >
        <message>
 <name>Hello in !</name></message>
 </xsp:page>

could any one suggest me how to get rid of this error.
Thanks and regards
Abhishek







Mime
View raw message