I have this XML structure:
<numb>
<variable>
<name>john</name>
<age>12</age>
</variable>
<variable>
<name>janet</name>
<age>10</age>
</variable>
<variable>
<name>johanna</name>
<age>22</age>
</variable>
<variable>
<name>harry</name>
<age>24</age>
</variable>
</numb>
If I try to delete a variable named johanna, I will do the following:
delete numb.variable.(name=="johanna);
but then I get this error:
"Error #1119: Delete operator is not supported with operand of type XMLList"
offering numb.variable. (name == "johanna") is an XMLList .. but then I tried this:
delete XML(numb.variable.(numb=="johanna");
but didn’t delete anything ..
Does anyone know how I can remove a specific variable in numb XML?
source
share