Sie sind nicht angemeldet.

1

Montag, 17. November 2008, 13:40

get attribute of data node

Hi can i put mine attributes of a data node an recive it by get ?
thankns.

2

Dienstag, 18. November 2008, 07:58

Hi,

the "data" and "action" node are special nodes,
they are used to store data that will not be parsed,
access the content of this nodes with "data[name].content" or "action[name].content"

e.g.

xml:

Quellcode

1
2
3
4
5
<data name="myhtmldata">
<html>
<p>hello data</p>
</html>
</data>


as3:

Quellcode

1
var myhtmldata:string = krpano.get("data[myhtmldata].content");


best regards,
Klaus

Ähnliche Themen