SyntaxFix
Write A Post
Hire A Developer
Questions
As a follow on, you could select "all nodes with a particular attribute" like this:
//*[@id='4']