Section 25.328. XMLSerializer: serializes XML documents and nodes


25.328. XMLSerializer: serializes XML documents and nodes

Firefox 1.0, Safari 2.01, Opera 7.60: Object XMLSerializer

25.328.1. Constructor

 new XMLSerializer( ) 

25.328.2. Methods


serializeToString( )

This instance method performs the actual serialization.

25.328.3. Description

An XMLSerializer object enables you to convert or "serialize" an XML Document or Node object to a string of unparsed XML markup. To use an XMLSerializer, instantiate one with the no-argument constructor, and then call its serializeToString( ) method:

 var text = (new XMLSerializer( )).serializeToString(element); 

Internet Explorer does not support the XMLSerializer object. Instead, it makes XML text available through the xml property of the Node object.

25.328.4. See Also

DOMParser, Node; Chapter 21




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net