Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

dom.stringify(document, [pretty], [indentationStep])

Returns a JSMA dom as string result

Example

Code Block
languagejs
linenumberstrue
//create container root node
var container = dom.parse("<container></container>", false).find("container");


//create item and add to container
var item = container.create("item");
item.attr("name", "Test");
item.text("Ein Testinhalt");
container.append(item);

//return string result
return container.stringify(true, 2);

...