public interface XMLSerializer
Modifier and Type | Method and Description |
---|---|
String |
serializeToString(Node node)
Returns the serialized subtree of a string.
|
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");
Copyright © 2016. All rights reserved.