0

XMLを分割して別のファイルとして保存しようとしています。File name/pattern オプションで何も指定しないと、ファイルは .dat 形式で正しく保存されます。しかし、ファイルを a1.xml 、a2.xml 、a3.xml のような something.xml 形式で保存したい。

これが私が試しているフローです

            <?xml version="1.0" encoding="UTF-8"?>
            <mule
            xmlns:json="http://www.mulesoft.org/schema/mule/json"
            xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking"
            xmlns:file="http://www.mulesoft.org/schema/mule/file"
            xmlns:http="http://www.mulesoft.org/schema/mule/http"
            xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml"
            xmlns="http://www.mulesoft.org/schema/mule/core"
            xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
            xmlns:spring="http://www.springframework.org/schema/beans"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
            http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
            http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
            http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd
            http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/current/mule-xml.xsd
            http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd
            http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd">
            <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
            <flow name="splitterprojectFlow">
            <http:listener config-ref="HTTP_Listener_Configuration" path="/splitter" allowedMethods="POST" doc:name="HTTP"/>
            <splitter expression="#[xpath('//Employee')]" doc:name="Splitter"></splitter>
            <mulexml:dom-to-xml-transformer doc:name="DOM to XML"/>
                    <file:outbound-endpoint path="src/test/resources" outputPattern=".xml" responseTimeout="10000" doc:name="File"/>
            </flow>
            </mule>
4

1 に答える 1