I can make a query that returns a result set of nodes with their id set to a value I know. But I can’t figure out how to get a result set of all nodes that have an id explicitly set.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
*[@id]will select all nodes with an[id]attribute:The catch is that it will pick up nodes where id is present but is empty (i.e.
id="")If you want to ignore nodes with empty
[id]attributes, use:*[@id!=""]