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


Example

XML

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

XPATH

boolean(/Animal/tusks)

OUTPUT

false