dom 到 xml 没有正确存储数据 mule esb

dom to xml not storing data properly mule esb

dom 到 xml 变压器有问题.. 我从微软连接器得到响应并转换为 xml 格式并将 xml 数据存储到文件中。 但问题是它没有以正确的方式存储。它在单行中存储所有数据。 如何解决这个问题?

下面是流程

 <flow name="flow1">
        <http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/>

        <dynamicsax:invoke-document-service-operation config-ref="Microsoft" serviceAndSoapActionUri="XXXXX" doc:name="Microsoft"/>
        <mulexml:dom-to-xml-transformer doc:name="DOM to XML"/>
        <file:outbound-endpoint path="test" outputPattern="test.xml" responseTimeout="10000" doc:name="File"/>
    </flow>

我想以正确的xml格式存储

您可能会探索 mule 的 xmlprettyprinter-transformer。

https://docs.mulesoft.com/mule-user-guide/v/3.6/xmlprettyprinter-transformer

此致, 拉尔夫