Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > xpath - how to find a node where a specific attribute does NOT exist?

Thread Tools

xpath - how to find a node where a specific attribute does NOT exist?

Posts: n/a
Hi, since there doesn't appear to be a way to get the individual
elements that make up the xpath to a result node, I'm trying to create
an xpath that will result in selecting this xml node which would be
the last board element without a finish attribute.

<Board sn@="12347" start="7/15/03"/>

other board elements may include a finish attribute, e.g,
<Board sn@="12346" start="7/15/03" finish="7/15/03"/>

if I try to include a predicate of [@finish = ""] it doesn't select
the node.

How do you select a node that does NOT have a certain attribute?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
XSLT Child node of a specific node XML 3 10-20-2006 10:05 PM
xsl variable $node/text() but $node can non-node-set help! Tjerk Wolterink XML 2 08-24-2006 03:28 AM
How to set the node indent property between the parent node and the leaf node ASP .Net 0 02-13-2006 07:11 PM
XSL HOWDOI use attribute of current node to select a different node? CB XML 1 10-02-2003 02:37 PM
Problem selecting a node with XPATH if attribute value contains backslashes - how to force XPATH string to be treated as literal? Alastair Cameron XML 1 07-08-2003 07:24 PM