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
{{ message }}
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.
Hi,
When there is an element with default namespace that doesn't have a prefix, XMLContext.php can not find it. This is a bug in xpath itself when there is no prefix. Check the first answer: XPath in SimpleXML for default namespaces
If I try to get countEntries attribute or Entries element using behatch context, it will not return anything.
I have tried to use rootns as default namespace but that didn't work either.
I made a fix to this issue by adding namespace(s) with counters inside getNamesapces method.
Hi,
When there is an element with default namespace that doesn't have a prefix,
XMLContext.php
can not find it. This is a bug in xpath itself when there is no prefix. Check the first answer:XPath in SimpleXML for default namespaces
So I have xml similar to the the following:
If I try to get
countEntries
attribute orEntries
element using behatch context, it will not return anything.I have tried to use
rootns
as default namespace but that didn't work either.I made a fix to this issue by adding namespace(s) with counters inside
getNamesapces
method.Then to get
countEntries
you can use the following phrase:The text was updated successfully, but these errors were encountered: