You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the back-slash operator on a NodeSeq, the behaviour does not match how XPath works. Getting the attribute value works when there's only a single element in the node sequence:
> val x = <x><a b='1'/></x>
> x \ "a" \ "@b"
res2: scala.xml.NodeSeq = 1
but fails when there are more:
> val x = <x><a b='1'/><a b='2'/></x>
> x \ "a" \ "@b"
res3: scala.xml.NodeSeq = NodeSeq()
expected:
res3: Seq(1, 2)
The text was updated successfully, but these errors were encountered:
Thanks @skalsi-atlassian for reporting this. As mentioned by @SethTisue there is a PR ready to go. Also please do have a look at PR, if you can spare any amount of time.
When using the back-slash operator on a NodeSeq, the behaviour does not match how XPath works. Getting the attribute value works when there's only a single element in the node sequence:
but fails when there are more:
expected:
The text was updated successfully, but these errors were encountered: