Hi,
the "xml.content" variable just contains the loaded xml content,
there is no current xml in krpano,
the editor plugin generates the xml manually by reading out all values and building a xml string from it,
e.g. here a short quote from the editor plugin source code,
this code generates the xml for the <autorotate> node:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
|
private function genxml_krpano_autorotate():String
{
var autorotate:Object = krpano.get("autorotate");
return "\t<autorotate enabled ="" + autorotate.enabled + ""\n" +
"\t waittime="" + autorotate.waittime + ""\n" +
"\t accel ="" + autorotate.accel + ""\n" +
"\t speed ="" + autorotate.speed + ""\n" +
"\t horizon ="" + autorotate.horizon + ""\n" +
"\t tofov ="" + autorotate.tofov + ""\n" +
"\t />\n";
}
|
best regards,
Klaus