file. Converting document into object of class file

^document.file[Document_to_text_conversion_parameters]

This method converts object of class
xdoc into object of class One can also specify conversion_parameters. By default, method will create XML-representation of the document with header <?xml … ?>(one can also disable this header by specifying relevant parameter).

With an option
$.file[filename] file name for the created file object can be defined.   [3.4.2]

Example
$document[^xdoc::create{<?xml version="1.0" encoding="windows-1251" ?>
<document>
string1<br />
string2<br />
</document>
}]
$response:body[^document.file[]]


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