xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: "Michael Fitzgerald" <mike AT wyeast.net>
- To: "xom-interest" <xom-interest AT lists.ibiblio.org>
- Subject: RE: [XOM-interest] Subclassing Serializer
- Date: Wed, 9 Oct 2002 07:07:21 -0700
Elliotte Rusty Harold wrote:
> At 2:15 PM -0700 10/8/02, Michael Fitzgerald wrote:
>
> >One use case: serializing plain text as XML.
>
> That's sort of backwards. The assumption is the serializer starts
> with an XML document, not plain text. The other direction might be
> something to look at on the Builder side, not the Serializer side.
Oh, well, what I meant was using XOM to help me with my own XML serializer
for plain text. Admittedly, a very narrow case.
> >Also, for aesthetics, I wish I could get an element with no text
> children to
> >be formed as an empty element tag instead of a start tag and end
> tag with no
> >content. In other words, this
> >
> ><empty/>
> >
> >is preferred over this
> >
> ><empty></empty>
> >
>
> That should be what's happening now with the current serializer. If
> it's not, then there's a bug somewhere.
With xom-1.0d5.jar, Serializer gives you <empty/> (hurrah) but toXML() alone
gives you <empty></empty>.
Mike
-
[XOM-interest] Subclassing Serializer,
Elliotte Rusty Harold, 10/07/2002
-
Re: [XOM-interest] Subclassing Serializer,
John Cowan, 10/07/2002
-
RE: [XOM-interest] Subclassing Serializer,
Michael Fitzgerald, 10/08/2002
-
RE: [XOM-interest] Subclassing Serializer,
Elliotte Rusty Harold, 10/09/2002
-
RE: [XOM-interest] Subclassing Serializer,
Michael Fitzgerald, 10/09/2002
- RE: [XOM-interest] Subclassing Serializer, Elliotte Rusty Harold, 10/09/2002
-
RE: [XOM-interest] Subclassing Serializer,
Michael Fitzgerald, 10/09/2002
-
RE: [XOM-interest] Subclassing Serializer,
Elliotte Rusty Harold, 10/09/2002
-
RE: [XOM-interest] Subclassing Serializer,
Michael Fitzgerald, 10/08/2002
-
Re: [XOM-interest] Subclassing Serializer,
John Cowan, 10/07/2002
Archive powered by MHonArc 2.6.24.