xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] encoding: how do I hit the XML processing instruction programmatically?
- From: Noam Tamim <noamtm AT gmail.com>
- To: Luca Passani <passani AT eunet.no>
- Cc: xom-interest <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] encoding: how do I hit the XML processing instruction programmatically?
- Date: Mon, 16 May 2005 11:36:58 +0300
(group readers: my reply to Luca was accidentally sent to him directly,
instead of to the list)
On 5/16/05, Luca Passani <passani AT eunet.no> wrote:
>
> > This is a common misconception.
> wow. I always heard the XML declaration referred to as 'the XML
> processing instruction'.
> Where does the misconception come from?
I guess it comes from the fact that it (visually) looks like a PI. See this
short answer <http://www.dpawson.co.uk/xsl/sect2/N6145.html#d8016e49> from
Michael Kay and the first
chapter<http://www.cafeconleche.org/books/effectivexml/chapters/01.html>from
Elliotte's Effective XML book. Unfortunately, some "reference" sites
also
call this <http://xmlwriter.net/xml_guide/processing_instruction.shtml> a
PI.
> If you want your XML to be serialized with a specific encoding, you
> > pass that encoding to the nu.xom.Serializer. If the encoding is
> > supported (see Serializer API), it will put it in the declaration.
> is this the example I am supposed to look at?
>
> https://xom.dev.java.net/source/browse/xom/src/nu/xom/samples/EncodingDemo.java?rev=HEAD&only_with_tag=MAIN
I think so, but I haven't tested it.
-Noam.
-
[XOM-interest] encoding: how do I hit the XML processing instruction programmatically?,
Luca Passani, 05/16/2005
-
Message not available
-
Re: [XOM-interest] encoding: how do I hit the XML processing instruction programmatically?,
Luca Passani, 05/16/2005
- Re: [XOM-interest] encoding: how do I hit the XML processing instruction programmatically?, Noam Tamim, 05/16/2005
-
Re: [XOM-interest] encoding: how do I hit the XML processing instruction programmatically?,
Luca Passani, 05/16/2005
-
Message not available
- Re: [XOM-interest] encoding: how do I hit the XML processing instruction programmatically?, Elliotte Harold, 05/16/2005
Archive powered by MHonArc 2.6.24.