public class JsXMLSerializer extends JsElementalMixinBase implements XMLSerializer
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
JsXMLSerializer() |
Modifier and Type | Method and Description |
---|---|
String |
serializeToString(Node node)
Returns the serialized subtree of a string.
|
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
intAt, length
numberAt
public final String serializeToString(Node node)
XMLSerializer
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");
serializeToString
in interface XMLSerializer
Copyright © 2016. All rights reserved.