XML transform using XSL

Hi,

I am new to the javax technology.

I have a xml that has data in this format

<?xml version="1.0" encoding="UTF-8"?>

<emps>

<emp>

<empName>Me</empName>

<empAge>23</empAge>

</emp>

<emp>

<empName>You</empName>

<empAge>23</empAge>

</emp>

</emps>

Can i convert this to an XML that has tags and data like

<employees>

<employee>

<name>me</name>

<age>23</age>

</employee>

<employee>

<name>you</name>

<age>23</age>

</employee>

</employees>

using a XSLT?

thanks,

Dilip

[855 byte] By [dilip_jsfa] at [2007-11-27 5:34:24]
# 1

So the only change is changing the element names? Sure you can. Or at least I can. Here's a template that changes an emps element into an employees element and preserves its children:<xsl:template match="emps">

<employees><xsl:apply-templates/></employees>

</xsl:template>

Use an identity transformation and put in one of these for each element whose name you want to change.

DrClapa at 2007-7-12 15:02:33 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...