[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Reuel Alvarez > Sent: Tuesday, January 30, 2001 1:32 PM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|