sachi9 0 Newbie Poster

The XML structure looks like this:

<table>
    <method>insert</method>
    <rows>
        <foo></foo>
        <bar></bar>
    </rows>
</table>

I need to get the following XML using XSLT based on the value 'insert' of XML element 'method':

<table>
    <method>insert</method>
    <rows>
        <row>
            <foo></foo>
            <bar></bar>
        </row>
    </rows>
</table>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.