jquery distort xml format
===

I am using jquery object to append elements & modify the value. I am intializing using a xml string which has nodes such as tgroup, table, row, tbody etc as given below. 

var str = "<txml> <table><tsnipp><tbody> <row> ... </row>  </tbody> </tsnipp> </table> </txml>"

Now am creating jq object as $(str),  when i do that though tag <tsnipp> is under table tag when inspecting jq object using firebug i see it above table tag & thus tsnipp is at same level as table and not as it children. i think jquery itself organizes it thinks it is table element (i.e html element). 

I by just changing table as d_table jquery does the right thing

I wanted to use jquery for manipulation of object as it is easier to manipulate as DOM object however converting into string and than to jquery object will require lot of regex to replace string into string back & forth