I'm trying to create an xml document where part of the information in the comment is coming from an attribute. However in the XMLTemplater everything within a comment is output untouched, including {fme:get-attribute("_comment")}.
Thoughts on how to work around this?
Attached is a sample workspace demonstrating the issue.
Build 2022.0
If I create an attribute in advance: <!-- comment should resolve attribute @Value(_creation_instance)--> and use {fme:get-attribute("_comment")},
then the braces are replaced with &ly; and >.
If I use {fme:get-xml-attribute("_comment")},
there are some xml parsing warnings:
XMLTemplater (XMLTemplaterFactory): The following error occurred near line 1, column 51 of the query:
XMLTemplater (XMLTemplaterFactory): invalid content passed to fn:parse-xml(): loader parsing error: Extra content at the end of the document
and the resultant xml does not contain the comment at all.