Is it possible to add something like that:
<?xml version="1.0" encoding="UTF-8"?>
to WSO2 XML Formatter in inline section? I see that tag is always added before tag "eventFormatter", but when I pass the event through CEP and I get the answer in my queue, the output XML doesn't have this tag.
If I want add it in inline section I get this error:
Failed to update event formatter, Exception: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[7,10] Message: The processing instruction target matching "[xX][mM][lL]" is not allowed.
//Udpate
My Formatter looks like:
<?xml version="1.0" encoding="UTF-8"?>
<eventFormatter name="Formatter_XML_Out" statistics="disable"
trace="disable" xmlns="http://wso2.org/carbon/eventformatter">
<from streamName="Test_stream_out_xml" version="1.0.0"/>
<mapping customMapping="enable" type="xml">
<inline>
<Event>
<Name>{{Name}}</Name>
<Surname>{{Surname}}</Surname>
</Event>
</inline>
</mapping>
<to eventAdaptorName="ActiveMQ_Output" eventAdaptorType="jms">
<property name="transport.jms.Destination">myQueue</property>
</to>
</eventFormatter>
I get this in output message:
<Event>
<Name>XXXX</Name>
<Surname>YYYYY</Surname>
</Event>
Why this tag <?xml version="1.0" encoding="UTF-8"?>
is gone?