i have a simple string that looks something like this...
i'd like to take this string and convert it so i can run things like...Code:
var xml = "<mydata><name>Bob Smith</name><email>firstname.lastname@example.org</email></mydata>";
var names = xml.getElementsById("name");
var num_names = names.length;