--- In flexcoders@yahoogroups.com, "jeffreyr6915" <[EMAIL PROTECTED]> wrote: > > Is there a way to delete an xml element from an XML object based on > the text value of that element? > > Example: > -------- > <items> > <item>a<item> > <item>b<item> > <item>c<item> > <items> > > I want to delete the element that has the value 'b' resulting in the > following xml object: > > <items> > <item>a<item> > <item>c<item> > <items> > > I don't want to use the following because it deletes all the <item> tags: > > delete items.item;
try delete items.item.(text()=='b'); HTH; Amy