[Xmltask-users] conditions based on nested elements and attributes
Brought to you by:
bagnew
|
From: Timothy D. M. <td...@tr...> - 2007-05-15 21:17:25
|
I have a series of elements called <entries>. Inside each one of these is another element that labels the entries. <entries> <string name="name" value="properties"> </string> </entries> <entries> <string name="name" value="ErrorForm"> </string> </entries> To give an example. Can I use xmltask to replace one of those entries? In English I want to say: replace the <entries> element IF it contains a <string> element whose value attribute is "properties". I tried specifying it like this: <remove path="//entries/string[@value='properties'/..]" /> but got this error: Applying RemovalAction() to //entries/string[@value='SERVICEMobilityProperties'/..] [xmltask] javax.xml.transform.TransformerException: ERROR! Unknown op code: 21 Is there a way for me to remove this element? Thanks, T |