OpenLayers.Format.KML.prototype.setAttributeNS= OpenLayers.Format.OSM.prototype.setAttributeNS= OpenLayers.Format.XML.prototype.setAttributeNS= function(node,uri,name,value)
Adds a new attribute or changes the value of an attribute with the given namespace and name.
Parameters
node {Element} Element node on which to set the attribute.
uri {String} Namespace URI for the attribute.
name {String} Qualified name (prefix:localname) for the attribute.
value {String} Attribute value.
или getAttributeNS:
getAttributeNS: function(node,uri,name)
Get an attribute value given the namespace URI and local name.
Parameters
node {Element} Node on which to search for an attribute.
uri {String} Namespace URI.
name {String} Local name of the attribute (without the prefix).
Returns {String} An attribute value or and empty string if none found.
наверное должно выглядеть так:
Код: Выделить всё
function setAttribute(value){
new OpenLayers.Format.XML.prototype.setAttributeNS(
node,
uri,
name,
value
)}