clicon / clixon

YANG-based toolchain including NETCONF and RESTCONF interfaces and an interactive CLI
http://www.clicon.org/
Other
215 stars 72 forks source link

Xpath API do not support filter data by wildcard #313

Closed zaker139 closed 2 years ago

zaker139 commented 2 years ago

xml content:

<root>
    <a>123</a>
    <b>456</b>
    <c>789</c>
</root>

Xpath like "/root/*[.='789']" shoud return \<c>789\</c>

Seems xpath API like xpath_first now do not support path like above.

olofhagsand commented 2 years ago

Confirm that '*' does not work in some contexts.

olofhagsand commented 2 years ago

Wait, something wrong with patch,..

olofhagsand commented 2 years ago

Now fixed. Please verify

zaker139 commented 2 years ago

Fixed