This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: xalan and nodelists



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]