Advanced Customizations, Overrides, and Extensions » ePublisher Platform XSLT Extensions » ExslDocument » void Document (object input, string path [, string encoding, string method, string version, string indent, string omit_xml_declaration, string standalone, string doctype_public, string doctype_system, string cdata_section_elements, string media_type])
void Document (object input, string path [, string encoding, string method, string version, string indent, string omit_xml_declaration, string standalone, string doctype_public, string doctype_system, string cdata_section_elements, string media_type])
 
Writes the specified node set to a file at the location defined by path. Optionally uses specified encoding for writing content. Optionally uses specified method (i.e. text, xhtml, xml...) and version. Optionally specify if file is to be formatted with indentation with 'yes' or 'no'. Optionally specify if file will have XML declaration with 'yes' or 'no'. Optionally specify if the file will be standalone with 'yes' or 'no'. Optionally specify public and system doctype modifiers.
Parameters:
input
The input.
path
Full pathname of the file.
encoding
The encoding (optional).
method
The method (optional).
version
The version (optional).
indent
Indent 'yes' or 'no' (optional).
omit_xml_declaration
Omit XML declaration 'yes' or 'no' (optional).
standalone
Standalone 'yes' or 'no' (optional).
doctype_public
The doctype public (optional).
doctype_system
The doctype system (optional).
cdata_section_elements
The cdata section elements (optional).
media_type
Type of the media (optional).
Write a node set to a file.
<xsl:variable name="VarResultAsXML">
...
</xsl:variable>
<xsl:variable name = "VarResult" select="msxsl:node-set($VarResultAsXML)/*" />
<xsl:variable name = "VarWriteDocument" select="wwexsldoc:Document($VarResult, 'C:\badplacefor.xml')" />
Was this helpful?
Last modified date: 10/14/2020