How can I disable xml header generation in Spring Integration's xpath-splitter component -


my problem <xpath-splitter> si component generates fragments xml-header theoretically can disabled setting omit-xml-declaration property of underlying transformer "yes"

how can that? how can set property when use <xpath-slitter>?

thanks

h-m. can like:

transformerfactory tf = transformerfactory.newinstance(); transformer transformer = tf.newtransformer(); transformer.setoutputproperty(outputkeys.omit_xml_declaration, "yes"); 

but don't have access transformer xpathmessagesplitter.

i think 1 more request implement 1 https://jira.spring.io/browse/int-2042.

will difficult right workaround provide input payload <xpath-splitter> node instead of string , result list<node>.

after can provide custom <transformer> code:

transformer transformer = transformerfactory.newinstance().newtransformer(); transformer.setoutputproperty(outputkeys.omit_xml_declaration, "yes"); stringresult result = new stringresult(); transformer.transform(new domsource(payload), result); return result.tostring(); 

and we'll take care jira issue in nearest future.

thank you!

update

the jira https://jira.spring.io/browse/int-2042 , (its related tickets) has been fixed in face of output-properties configuration option.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -