src/nodejs/jsxmlserializer

    Dark Mode
Search:
Group by:

Example:

import src/nodejs/jsxmlserializer
from std/dom import document
if defined(fusionJsXMLSerializerTests):
  let cerealizer: XMLSerializer = newXMLSerializer()
  echo cerealizer.serializeToString(node = document)

Types

XMLSerializer = ref object of JsRoot
XMLSerializer API.

Procs

func newXMLSerializer(): XMLSerializer {.importjs: "new XMLSerializer()",
    ...raises: [], tags: [].}
https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer
func serializeToString(this: XMLSerializer; node: Node): cstring {.
    importjs: "#.$1(#)", ...raises: [], tags: [].}
https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer/serializeToString