Spin: Need to read/write XML OutputStreams, but no SpinXmlTreeElement class

Hi,

I am looking at the docs:
https://docs.camunda.org/manual/7.8/reference/spin/xml/03-writing-xml/#writing-to-an-output-stream

But I fail to find a SpinXmlTreeElement class.

Basically I need to be able to read/write XMLs without specifying the charset as XML afaik contains information about the charset, so the stream read/write features that seem to be mentioned in those docs are useful for me.

here’s my POM:

        <dependency>
            <groupId>org.camunda.bpm</groupId>
            <artifactId>camunda-bom</artifactId>
            <version>7.8.0</version>
            <scope>import</scope>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>org.camunda.spin</groupId>
            <artifactId>camunda-spin-bom</artifactId>
            <scope>import</scope>
            <type>pom</type>
            <version>1.4.2</version>
        </dependency>  
   .....
    <dependency>
        <groupId>org.camunda.spin</groupId>
        <artifactId>camunda-spin-core</artifactId>
    </dependency>
    <dependency>
        <groupId>org.camunda.spin</groupId>
        <artifactId>camunda-spin-dataformat-all</artifactId>
    </dependency>
    <dependency>
        <groupId>org.camunda.bpm</groupId>
        <artifactId>camunda-engine-plugin-spin</artifactId>
    </dependency>

Thanks for reporting. The correct class names are org.camunda.spin.xml.SpinXmlElement and org.camunda.spin.xml.SpinXmlAttribute. If you call SpinXmlElement#unwrap, then you get an instance of org.w3c.dom.Element which I believe can be used to directly write to a stream.

Cheers,
Thorben