August 2006
Intermediate to advanced
1018 pages
34h 13m
English
XMLSerializer: serializes XML documents and nodes — Firefox 1.0, Safari 2.01, Opera 7.60: Object → XMLSerializer
new XMLSerializer( )
serializeToString(
)
This instance method performs the actual serialization.
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.
DOMParser, Node; Chapter 21
Read now
Unlock full access