xpath problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sander Bos

    #1

    xpath problem

    I want to retrieve a node if exist if not exist retrieve a different node e.g. h1 if not exist retrieve the h3 node.
    this xpath is not working: /.//h1[1]|h3[1]

    Document example

    <div>
    <h3>Example</h3>
    </div>
Working...