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>