XMLSerializer Interface
Constructors
Code new XMLSerializer() #
XMLSerializer();
Methods
Code String serializeToString(Node node) #
var s = new XMLSerializer(); var d = document; var str = s.serializeToString(d); alert(str);
var s = new XMLSerializer(); var stream = { close : function() { alert("Stream closed"); }, flush : function() { }, write : function(string, count) { alert("'" + string + "'\n bytes count: " + count + ""); } }; s.serializeToStream(document, stream, "UTF-8");
String serializeToString(Node node);
This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.