2

I am experimenting with e4x. I could programmatically add an attribute to an Xml by doing something like this :

xml.@name = 'jerry';

now i have added a name attribute to it programmatically because even though the xml had no attribute called name, after the statement above, it automatically has one now. My difficulty now is how do i , as well, remove the name attribute i have inserted programmatically again?

Prince John Wesley
  • 62,492
  • 12
  • 87
  • 94
helpdesk
  • 1,984
  • 6
  • 32
  • 50

1 Answers1

3

Use following operator:

delete xml.@name;
moropus
  • 3,672
  • 1
  • 22
  • 30