Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Serialization using explicit numeric Unicode points

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT ibiblio.org>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Serialization using explicit numeric Unicode points
  • Date: Mon, 17 Sep 2012 06:07:08 -0400

On Tue, Aug 28, 2012 at 9:43 AM, Peter Murray-Rust <pm286 AT cam.ac.uk> wrote:
> Is there a way to use XOM to serialize high code points as explicit numbers
> (e.g.
>
> &#8226; [that should read ampersand-hash-8-2-2-6-semicolon in case this
> mail translates it])
>
> or do I need to subclass Serializer?
>

If you use UTF-8 you need to subclass Serializer. XOM deliberately
shields you from syntactic details such as how characters are encoded.


If you set the serializer to ASCII or Latin-1 though, then these
characters should be numerically escaped.

--
Elliotte Rusty Harold
elharo AT ibiblio.org



  • Re: [XOM-interest] Serialization using explicit numeric Unicode points, Elliotte Rusty Harold, 09/17/2012

Archive powered by MHonArc 2.6.24.

Top of Page