Skip to Content.
Sympa Menu

xom-interest - RE: [XOM-interest] Subclassing Serializer

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: "Michael Fitzgerald" <mike AT wyeast.net>, "xom-interest" <xom-interest AT lists.ibiblio.org>
  • Subject: RE: [XOM-interest] Subclassing Serializer
  • Date: Wed, 9 Oct 2002 12:16:31 -0400

At 7:07 AM -0700 10/9/02, Michael Fitzgerald wrote:
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.

Oh, OK. That's plausible. With the changes I'm working into Serializer now for 1.0d6 that should not be a problem. Note that already for simple output you can use document.getValue() now. :-)


With xom-1.0d5.jar, Serializer gives you <empty/> (hurrah) but toXML() alone
gives you <empty></empty>.


That should not be hard to fix. I'll look at it.
--

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo AT metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| XML in a Nutshell, 2nd Edition (O'Reilly, 2002) |
| http://www.cafeconleche.org/books/xian2/ |
| http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+




Archive powered by MHonArc 2.6.24.

Top of Page