Hi @lifalin2016, the XML reader can also be used.
When adding the reader, check the Single Merged Feature Type for the Workflow Options in the Add Reader dialog, and set writer parameters as below.
- Configuration Type: Feature Paths
-
Feature Paths Configuration/Elements to Match: //*
-
Flatten Options: Uncheck the Enable Flattening checkbox
Here, the //* (two slashes and an asterisk) indicates the document root element with any name.
If you read an XML document with this setting, the reader feature type will output a single feature having "xml_fragment" attribute, which stores the entire XML document.
[Addition] /* (a single slash and an asterisk) seems to work too.