RE: [xsl] xalan and nodelists

Subject: RE: [xsl] xalan and nodelists
From: "Paul Brown" <prb@xxxxxxxxxxxxx>
Date: Tue, 30 Jan 2001 14:25:25 -0600
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@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Reuel Alvarez
> Sent: Tuesday, January 30, 2001 1:32 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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


Current Thread