Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] toXML() instead of getStringForm()?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: John Cowan <jcowan AT reutershealth.com>
  • To: laurent.bihanic AT atosorigin.com (Laurent Bihanic)
  • Cc: jcowan AT reutershealth.com (John Cowan), xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] toXML() instead of getStringForm()?
  • Date: Fri, 20 Sep 2002 07:28:52 -0400 (EDT)

Laurent Bihanic scripsit:

> >>Just to nag: Why not toXMLString() (toXmlString()) to clearly mark that
> >>the
> >>output is not an XML document.
> >
> > Au contraire: the output *is* an XML document, because an XML document
> > is a textual object. XOM is not XML.
>
> The output is not a document: A (well-formed) XML document contains one and
> only one root element.

Well, okay. But my point stands: XML is textual, and getXML (I prefer
this capitalization, based on the Java treatment of "URI" and other
acronyms whether pronounceable or not) is a very sensible name for
something that returns a text.

--
John Cowan jcowan AT reutershealth.com www.reutershealth.com
www.ccil.org/~cowan
"The exception proves the rule." Dimbulbs think: "Your counterexample proves
my theory." Classicists think "'Probat' means 'tests': the exception puts the
rule to the proof." But legal historians know it means "Evidence for an
exception is evidence of the existence of a rule in cases not excepted from."




Archive powered by MHonArc 2.6.24.

Top of Page