Looking at this article writing using the XSD XML Writer: https://community.safe.com/s/article/XSD-Driven-XML
It seems that it is not possible to nest features together using xml_id and xml_parentid and having multiple features to write.
For that example I want to be able to have two featurewriters as shown below, the cap:alert and the cap:info. The way they are grouped together is that the cap:info has an xml_id and xml_parent_id which links it to the correct cap:info. I thought that woudl work, but no.... Is there no way to write complex nested xml-features other than "merging them in the workspace"?