...
dom.stringify(document, [pretty], [indentationStep])
Returns a JSMA dom as string result
Example
Code Block | ||||
---|---|---|---|---|
| ||||
//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); |
...