This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xalan and nodelists
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] xalan and nodelists
- From: "Paul Brown" <prb at fivesight dot com>
- Date: Tue, 30 Jan 2001 14:25:25 -0600
- Reply-To: xsl-list at lists dot mulberrytech dot com
It won't make any different -- either you'll have to iterate over the
NodeList or XMLSerializer will...
As for doing it yourself, you can serialize a document fragment with
XMLSerializer, however, but you will need to create the document fragment
and then clone the nodes in the nodelist into it. (The alternative is for
you to write your own method and use a switch statement on NodeType() (an
int) and wrap it in the corresponding XMLSerializer methods (e.g.,
startCDATA(), etc.).)
- Paul
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Reuel Alvarez
> Sent: Tuesday, January 30, 2001 1:32 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] xalan and nodelists
>
>
> Given a NodeList retrieved from an XML Document, is there an easy way to
> convert this NodeList to a Document? I want to serialize the
> NodeList using
> XMLSerializer but would like to avoid having to traverse each Node of the
> NodeList.
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list