Hi!
I don't know the way to get xml text of an krpano array item.
But I know how to get all attributes value.
there is getattributes() method - return attributes name array.
So you can loop it and get value of each
and build xml string
obj = krpano.hotspot.getItem(bla);
attr = obj.getattribites();
var xmlst = "<hotspot ";
for(i=0; i<attr.length; i++) {
xmlst += attr
+ "=\"" + krpano.get("hotspot[" + obj.name + "]." + attr[i]) + "\" ";
}
xmlst += " />";
something like this
Regards
Andrey