$.parseXML() is not working with xml string without root node

tranviet25

New Member
Below is my code \[code\] var str = "<single><n>Q1</n><v></v><m></m></single> <single><n>Q2</n><v>y</v><m></m></single> <single><n>Q3</n><v></v><m>y</m></single>"; // ! I gave this string value in three lines just for readability purpose var xmlDoc = $.parseXML( str ); var xml = $(xmlDoc); alert(xml.find('single').size()); \[/code\]But this is not working, Please check this fiddle
 
Top