I have an xml file named test.xml, without a root tag like this:
<cat></cat>
<name></name>
<id></id>
<cat></cat>
<name></name>
<id></id>
How can I wrap this file with a root tag to make the output look like this:
<root>
<cat></cat>
<name></name>
<id></id>
<cat></cat>
<name></name>
<id></id>
</root>