    

 ## On this page

  

 

 # toXMLFile

 Last update: 30.07.2026 

public [toXMLFile](to-x-m-l-file.md)(fileName: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))

turns the given file into an XML file

#### Parameters

fileNamethe file to turn into an XML file in format#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [toXMLFile](to-x-m-l-file.md)(fileName: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), includeRunData: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))

turns the given file into an XML file

#### Parameters

fileNamethe file to turn into an XML file in formatincludeRunDatawhether or not to include run data into the XML#### Throws

[ModelCenterException](./../-model-center-exception/index.md)