xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmt <...@dxdydz.net>
Subject Re: XMLOutputter content to xindice
Date Sat, 08 Nov 2003 06:21:12 GMT
Try this :
XMLOutputter outputter=new XMLOutputter( -your options- );
outputter.setOmitDeclaration(true);


On Friday 07 November 2003 12:25, JC Tchitchiama wrote:
  > Hi All,
  >
  > The symptoms of this problem is that I cannot store a document to xindice
  > as String or DOM.
  >
  > So I tries the following scenario
  >
  > DOM parse a document stored in an  OutputStream by XMLOutputter
  > e.g.
  > JDOM->XMLOutputter.output(Document OutputStream)->DOMParser(InputStream)
  >
  >  I keep on getting
  >  at org.jdom.input.SAXBuilder.build(SAXBuilder.java:381)
  >  on line 1: Content is not allowed in prolog.
  >
  > I am sure that the JDOM document is fine because when I parse it just
  > before calling the XMLOutputter it is fine.
  >
  > I stored the document to a file and it looks fine to me.
  >
  > Has anybody come across something similar, I'd appreaciate any clues
  >
  > Thanks and Best Regards.
  >
  > Best Regards.
  >
  > JC.
  >            \\- - -//
  >           (  @ @  )
  > ===oOOo-(_)-oOOo=================================================
  >       jct@panonet.net
  > =================================================================


Mime
View raw message