function setXNodeAttributes(node, attrs) {
$.map(node.attributes, function(attrNode) {
var xName = attrNode.nodeName.substr(9);
function setXNodeAttributes(node, attrs) {
$.map(node.attributes, function(attrNode) {
var xName = attrNode.nodeName.substr(9);