Hi 
 
I have an XML Message that is send over JMS which I would like to be
splitted. The message looks like this
 
<instruction>
    <header1>...</header1>
    <header2>...</header2>
    ...
    <stages>
        <stage>
            <stageInfo1> ... </stageInfo1>
                ...
        </stage>    
    
        <stage>
            <stageInfo1> ... </stageInfo1>
                ...
        </stage>    
    </stages>
</instruction>
 
What I want now is to split the message so that each message contains the
complete header and one stage. So I want n message, where n is the number of
stages in my document. But each message should contain the header. Is that
possible using the XPath Splitter alone?
Or should I use a ContentFilter where I filter the header out, the use a
splitter for the stages only and afterwards use a ContentEnricher to bring
the header information into the message again?
 
Do you have any suggestions?
Thanks
Robert

Reply via email to