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: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] toXML() instead of getStringForm()?
  • Date: Fri, 20 Sep 2002 07:39:21 -0400

At 1:03 PM +0200 9/20/02, Laurent Bihanic wrote:

The output is not a document: A (well-formed) XML document contains one and only one root element. Thus only Element.getStringForm() can return an XML document. For the other nodes, the method returns a string that can be part of a document.

Is a fragment of an XML document still XML? I certainly don't think the method should be called toXMLDocument() but toXML() seems appropriately ambiguous.
--

+-----------------------+------------------------+-------------------+
| 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