Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle namespaces #11

Merged
merged 4 commits into from Oct 10, 2016
Merged

Handle namespaces #11

merged 4 commits into from Oct 10, 2016

Conversation

Exirel
Copy link
Owner

@Exirel Exirel commented Oct 10, 2016

These changes will improve the situation when it comes to test XML documents with namespaces:

  • default namespace (xmlns=...) can be used in xpath expressions as ns (or with a custom prefix),
  • named namespaces (xmlns:named=...) can be used in xpath expressions with their prefix, as long as they are defined for the root node the assertion is made with.

This version handle only namespaces declared in the root node tested.
It allows test writers to use `ns:node` or `custom:node` in their XPath
expressions, instead of `{http://full.url/}node`.

It works only with namespaces declared on the root node used to make
assertion.
@Exirel Exirel self-assigned this Oct 10, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-2.04%) to 97.959% when pulling 3259a2f on handle-namespaces into 3e8bc8c on master.

@Exirel Exirel merged commit 3259a2f into master Oct 10, 2016
@Exirel Exirel deleted the handle-namespaces branch October 10, 2016 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants