how to create an output file based on xml data in mule -


im new mule out there can me out. im trying create output based on content in xml ex

<header>    <uniqueid>aaa_12345</uniqueid> </header> 

id filename the uniqueid ie aaa_1245.xml

i found few syntax on net doesnt work me. syntax

<file:outbound-endpoint path="${cwmessagespath}/out" outputpattern="#[xpath:/header/uniqueid].xml" connector-ref="cwksbdefaultfileconnector" /> 

for reason, mule creates #[xpath: directory, header directory , filename uniqueid].xml

im using mule 2.2.1

thanks help.

this should work.

is cwksbdefaultfileconnector configured in specific manner?

also, think in mule 2 possible configure other placeholders #[ ] expressions. expressions working syntax elsewhere in application? if yes, problem different.

do run standalone or embedded? if embedded, make sure have mule-module-xml dependency in project's pom.

finally, payload type of message hits file:outbound-endpoint? maybe manual transformation needed in mule 2 before using xpath.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -