create_document_from_xml
Create a Word .docx file directly from XML, saving it to a chosen path. This lets XML-producing workflows like XSLT generate styled reports without requiring .NET, OOXML, or the Word DSL API.
Instructions
Builds a new Word document from XML matching Kookerella.FsWordDsl's own embedded schema (Xml.xsd) and saves it to disk - the inverse of generate_xml. The natural target for a caller that already produces data as XML (e.g. an XSLT pipeline generating a report) and wants to reach Word without learning the OOXML schema, this library's own F#/C# API, or needing .NET installed at all - like generate_xml, the .NET work happens inside this server, so any language can call it directly, and a human with no MCP client at all can get the same result via fsworddsl-mcp build from a plain shell. Covers the same section/paragraph-level feature set generate_xml does; unlike create_document, this isn't limited to plain paragraph text - named styles, tables, images, and every other modeled feature can be expressed in the XML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The document XML content - a <document> root element matching Xml.xsd. | |
| path | Yes | Output file path, e.g. "C:\reports\memo.docx". The directory must already exist. |