    

 ## On this page

  

 

 # toXML

 Last update: 30.07.2026 

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

to XML

#### Return

string

#### Throws

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

to XML

#### Return

string

#### Parameters

includeRunDatawhether or not to include run data into the XML#### Throws

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