Subject: use transformator to add nodes to the xml stucture
From: henry human <henry_human@xxxxxxxx>
Date: Mon, 15 Dec 2008 20:32:41 +0100 (CET)
|
Hi
It is following situation.
In a Java application I read XML messages. After
parsing I am going to complete the message with
additional attributes and nodes according to the
templates:
before:
<Sales>
<SalesId>1</SalesId>
<Currency>YEN</Currency>
</Sales>
after:
<Sales>
<SalesId>1</SalesId>
<Currency>YEN</Currency>
<Car>
<Mileage>empty</Mileage>
<Description>empty</Description>
<Discount
currency="empty">empty</Discount>
</Car>
</Sales>
Above is only one sample message but there are many
different messages with different structure.
Is there a way to use XSLT files and a Transformator
(f.i. saxon) to do it ?
Thanks for any help
|