xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] toXML() instead of getStringForm()?
- 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/ |
+----------------------------------+---------------------------------+
-
Re: [XOM-interest] toXML() instead of getStringForm()?
, (continued)
-
Re: [XOM-interest] toXML() instead of getStringForm()?,
Bradley S. Huffman, 09/20/2002
- Re: [XOM-interest] toXML() instead of getStringForm()?, Elliotte Rusty Harold, 09/20/2002
-
Re: [XOM-interest] toXML() instead of getStringForm()?,
Kevin Herrboldt, 09/25/2002
- Re: [XOM-interest] toXML() instead of getStringForm()?, John Cowan, 09/25/2002
-
Re: [XOM-interest] toXML() instead of getStringForm()?,
Rolf Lohaus, 09/20/2002
- Re: [XOM-interest] toXML() instead of getStringForm()?, Elliotte Rusty Harold, 09/30/2002
-
Re: [XOM-interest] toXML() instead of getStringForm()?,
Laurent Bihanic, 09/20/2002
-
Re: [XOM-interest] toXML() instead of getStringForm()?,
John Cowan, 09/20/2002
-
Re: [XOM-interest] toXML() instead of getStringForm()?,
Laurent Bihanic, 09/20/2002
- Re: [XOM-interest] toXML() instead of getStringForm()?, John Cowan, 09/20/2002
- Re: [XOM-interest] toXML() instead of getStringForm()?, Elliotte Rusty Harold, 09/20/2002
-
Re: [XOM-interest] toXML() instead of getStringForm()?,
Laurent Bihanic, 09/20/2002
-
Re: [XOM-interest] toXML() instead of getStringForm()?,
John Cowan, 09/20/2002
-
Re: [XOM-interest] toXML() instead of getStringForm()?,
Bradley S. Huffman, 09/20/2002
Archive powered by MHonArc 2.6.24.