25.328. XMLSerializer: serializes XML documents and nodesFirefox 1.0, Safari 2.01, Opera 7.60: Object XMLSerializer25.328.1. Constructornew XMLSerializer( ) 25.328.2. Methods
25.328.3. DescriptionAn 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 AlsoDOMParser, Node; Chapter 21 |