xpath Search for nodes with name light (case insensitive)


Example

XML

<Galaxy>
    <Light>sun</Light>
    <Device>satellite</Device>
    <Sensor>human</Sensor>
    <Name>Milky Way</Name>
</Galaxy>

XPATH

/Galaxy/*[lower-case(local-name())="light"]

or

//*[lower-case(local-name())="light"]

OUTPUT

<Light>sun</Light>