jQuery: How to find out the root tag name in XML? -
i need know name of root tag in xml. how find out?
the fastest (safe) way grab (assuming have xml in string or jquery wrapper already) be:
var firstnodename = $(xml).attr("nodename"); if xml in wrapper, no need $(), xml.attr() do.
Comments
Post a Comment