Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] javascript

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Luca Passani <passani AT eunet.no>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>, Michael Abato <maengden AT gmail.com>
  • Subject: Re: [XOM-interest] javascript
  • Date: Fri, 06 May 2005 09:54:05 -0400

Luca Passani wrote:

I am just piping the modified DOM into a web browser with:

response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println(doc.toXML());


Right there is your problem. XOM does not generate text/html. It generates application/xml or perhaps application/xhtml+xml. Try one of those media types instead. But right now it's like you're pumping diesel fuel into an engine that expects regular and wondering why your car keeps backfiring.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page