XML delete Problem [Flash 10]
| Beiträge: 7 Registriert: Jan 2009
| 19.05.2010, 11:43
Hallo,
ich hab ein XML, kopiere das in ein anderes, lösche an dem anderen einige Zweige raus, als Ergebnis sind aber im Source-XML ebenfalls die Zweige rausgelöscht. Wie ist das denn nachvollziehbar?
Ich blicks nicht.....
var A:XML = <data>
<headerItems>
<theItem theName="Kategorie" itemOpen="false"/>
<theItem theName="Titel" itemOpen="true"/>
<theItem theName="Datum" itemOpen="true"/>
<theItem theName="Historie" itemOpen="true"/>
<theItem theName="Grafik" itemOpen="true"/>
<theItem theName="Betrag" itemOpen="true"/>
<theItem theName="Zins" itemOpen="true"/>
<theItem theName="Gebühr" itemOpen="true"/>
<theItem theName="Name" itemOpen="true"/>
<theItem theName="Kto.Nr." itemOpen="false"/>
<theItem theName="Blz." itemOpen="false"/>
<theItem theName="Institut" itemOpen="false"/>
</headerItems>
</data>;
//
var B:XML = A;
trace("A " + A.toXMLString());
trace("B " + B.toXMLString());
delete B.headerItems.child("theItem")[5];
delete B.headerItems.child("theItem")[5];
delete B.headerItems.child("theItem")[5];
delete B.headerItems.child("theItem")[5];
trace("A' " + A.toXMLString());
trace("B' " + B.toXMLString());
Vielen Dank, | | | Beiträge: 992 Wohnort: ..::LAGE::.. Registriert: Apr 2006
| 19.05.2010, 11:46
|
|