xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- 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
-
[XOM-interest] javascript,
Luca Passani, 05/06/2005
-
Re: [XOM-interest] javascript,
John Cowan, 05/06/2005
-
Re: [XOM-interest] javascript,
Adam Constabaris, 05/06/2005
- Re: [XOM-interest] javascript, Luca Passani, 05/06/2005
-
Re: [XOM-interest] javascript,
Luca Passani, 05/06/2005
- Re: [XOM-interest] javascript, Elliotte Harold, 05/06/2005
-
Re: [XOM-interest] javascript,
Adam Constabaris, 05/06/2005
-
Re: [XOM-interest] javascript,
Elliotte Harold, 05/06/2005
-
Message not available
- Re: [XOM-interest] javascript, Elliotte Harold, 05/06/2005
-
Message not available
-
Re: [XOM-interest] javascript,
John Cowan, 05/06/2005
-
Message not available
-
Re: [XOM-interest] javascript,
Luca Passani, 05/06/2005
-
Re: [XOM-interest] javascript,
Elliotte Harold, 05/06/2005
-
Re: [XOM-interest] javascript,
Luca Passani, 05/06/2005
- Re: [XOM-interest] javascript, Elliotte Harold, 05/06/2005
-
Re: [XOM-interest] javascript,
Luca Passani, 05/06/2005
-
Re: [XOM-interest] javascript,
Elliotte Harold, 05/06/2005
-
Re: [XOM-interest] javascript,
Luca Passani, 05/06/2005
-
Re: [XOM-interest] javascript,
Nils_Kilden-Pedersen, 05/06/2005
- Re: [XOM-interest] javascript, Luca Passani, 05/06/2005
- Re: [XOM-interest] javascript, Luca Passani, 05/06/2005
- <Possible follow-up(s)>
- RE: [XOM-interest] javascript, Jacobs, Robert A., 05/06/2005
- RE: [XOM-interest] javascript, Mustard, Sandy, 05/06/2005
Archive powered by MHonArc 2.6.24.