Travis Hydzik
asked on
jQuery/JavaScript obtain Element name of root element in XML
experts,
I have the following bit of code that reads an xml file;
I want to get the root element's name.
I have read that the following will select the root element;
what do I add to get the name of this root element?
I have the following bit of code that reads an xml file;
jQuery.get(xml, function (data) {
}
I want to get the root element's name.
I have read that the following will select the root element;
jQuery(data).filter(":first")
what do I add to get the name of this root element?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER