xpath Check if a node is present Does the animal have horns?


Example

XPATH

<Animal>
    <legs>4</legs>
    <eyes>2</eyes>
    <horns>2</horns>
    <tail>1</tail>
</Animal>

XPATH

boolean(/Animal/horns)

OUTPUT

true