Domain to XML mapping into variable

2
I am have setup the same flow as mentioned in this question Domain-to-XML-mapping-without-Web-Service My question is whether or not it is possible to get the resultant XML in a variable/entity instead of a file? I need the XML to publish to JMS. An alternative is to have Java Action to marshal the entity to XML using any of the available libraries, but I was hoping to just use the Mendix XML features.
asked
2 answers
2

Thank you. I realized that the original thread I referred to actually contained the answer. Day 8 in Mendix so I am still tripping over myself.

I am extracting the XML from the FileDocument in a Java Action.

InputStream fileDocumentContent = Core.getFileDocumentContent(this.getContext(), __FileDocument); String xmlString = IOUtils.toString(fileDocumentContent);

answered
1

You can store the file into a file document. After that you could publish it to JMS with a java-action.

answered