[erlang-questions] xmerl_xpath doesn't handle "//@*" correctly?
Bertil Karlsson
bertil.karlsson@REDACTED
Tue Aug 12 09:15:01 CEST 2008
Thanks for this report, I think you are right and we will address this
as soon as possible.
/Bertil
Matthew Dempsky wrote:
> I have almost zero xpath knowledge, but this seems inconsistent to me:
>
> 1> F = fun(S) -> {Doc, _} = xmerl_scan:string(S),
> length(xmerl_xpath:string("//@*", Doc)) end.
> #Fun<erl_eval.6.13229925>
> 2> F("<a b='c'></a>").
> 1
> 3> F("<a b='c'><d/></a>").
> 1
> 4> F("<a b='c'> </a>").
> 0
>
> Shouldn't "//@*" return 1 attribute for the last case as well? (Using
> "//*/@*" instead works in all three cases as I expect.)
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
>
More information about the erlang-questions
mailing list