Good day to you,
I use Castor to map network infrastructure into Java classes. My XML file looks like this:
<SPECTRUM_Topology>
<Topology>
<!-- Device information -->
<Device ip_dnsname="172.20.162.1" ... />
</Topology>
<Update>
<Device ip_dnsname="172.20.162.1">
<!-- Port information -->
<Port ... />
<Port ... />
</Device>
</Update>
</SPECTRUM_Topology>
I need the file to look like this:
<SPECTRUM_Topology>
<Topology>
<!-- Device information -->
<Device ip_dnsname="172.20.162.1" ...>
<!-- Port information -->
<Port ... />
<Port ... />
</Device>
</Topology>
</SPECTRUM_Topology>
Is there a way to do this via XSLT?