create. Creating a new empty document

^xdoc::create[tag_name]
^xdoc::create[base_path;tag_name]

This constructor creates object of class
xdoc, containing single tag tag_name. One can also specify base path.

Example
$document[^xdoc::create[document]]
$paraNode[^document.
createElement[para]]
$addedNode[^document.
documentElement.appendChild[$paraNode]]
$
response:body[^document.
string[]]


Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 28.02.2007