'Documentation for the XML format for files referenced from the kotlinc -Xbuild-file argument

Where is the documentation for the XML format for the contents of files referenced from the kotlinc -Xbuild-file argument?

The XML looks something like:

<modules>
    <module name="module-name" type="java-production" outputDir="/Users/user/code/project/build/classes/kotlin/main">
        <sources path="/Users/user/code/project/src/main/kotlin/package/Class.kt"/>
        <javaSourceRoots path="/Users/user/code/project/src/main/java"/>
        <classpath path="/Users/user/code/project/libs/lib.jar"/>
    </module>
</modules>


Solution 1:[1]

Per JetBrains, there is not documentation for this XML format since it is not a public API.

But the parser source for that format is in GitHub:

https://github.com/JetBrains/kotlin/blob/master/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/modules/ModuleXmlParser.java

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 XDR