Hi,
      I have a scenario where i need to append an XML content to an already
existing XML file .
Already Existing XML :
    <Sobjects>
        <Account>
            <ID>123</ID>
            <Name>Karthik</Karthik>
        </Account>
    </Sobjects>

New XML :
    <Sobjects>
        <Account>
            <ID>456</ID>
            <Name>Subramanian</Karthik>
        </Account>
    </Sobjects>

I need the child nodes alone combined where the final output looks like this
:
    <Sobjects>
        <Account>
            <ID>123</ID>
            <Name>Karthik</Karthik>
        </Account>
        <Account>
            <ID>456</ID>
            <Name>Subramanian</Karthik>
        </Account>
    </Sobjects>

I use Xstream to convert the data into an XML. THe data is a run time
determined HashMap for which i have registered a custom converter. I have
tried using the Xstream.addImplicitCollection but as i am trying to convert
a List of HashMaps, this option doesnt work.

Any suggestions ?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Appending-to-an-already-existing-XMl-with-same-root-node-tp5759388.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to