Hi
example
<root>
<node id="1" action='delete'/>
<node id="2" action='update'/>
<node id="3" />
<node id="4" />
</root>
How can I select the nodes that don't have action='delete' attribute.
I can use
.selectNodes("/root/node[@action!value() != 'delete']"
or even
.selectNodes("/root/node[@action != 'delete']"
But these two only return nodes that actually have the action attribute, even if it's action=""
So basically I need to select nodes that "don't have an attribute of action". then I can add an 'or action != delete'.
I don't know if it can be done at all
Any suggestions or workarounds would be appriciated please
Thanks
Trentj
example
<root>
<node id="1" action='delete'/>
<node id="2" action='update'/>
<node id="3" />
<node id="4" />
</root>
How can I select the nodes that don't have action='delete' attribute.
I can use
.selectNodes("/root/node[@action!value() != 'delete']"
or even
.selectNodes("/root/node[@action != 'delete']"
But these two only return nodes that actually have the action attribute, even if it's action=""
So basically I need to select nodes that "don't have an attribute of action". then I can add an 'or action != delete'.
I don't know if it can be done at all
Any suggestions or workarounds would be appriciated please
Thanks
Trentj