XPath: Incorrect XPath to dynamically fetch the node name

Hi,

I’d like to propose to optimize the dynamic fetching of XML node names as the constructed XPath seems not correct.

Auto generated XPath: /item/*[1]/name
Correct XPath: name(/item/*[1])

<item>
    <node1>abc</node1>
    <node2>123</node2>
</item>

image

Best
Mike