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

xml-source should support xml with a default namespace #531

Closed
Seddryck opened this issue Oct 3, 2019 · 1 comment
Closed

xml-source should support xml with a default namespace #531

Seddryck opened this issue Oct 3, 2019 · 1 comment

Comments

@Seddryck
Copy link
Owner

Seddryck commented Oct 3, 2019

At the moment , the XPath mutation is only supporting an xml without namespace. It should be possible to to use the XPath mutation when the xml is defining a default namespace.

Unfortunately, XPath 1.0 doesn't support default namespace! We'll need to provide a name (prefix to the default) and use it in the XPath.

<xml-source>
  <file>myxml.xml</file>
  <default-namespace-prefix>default</default-namespace-prefix>
  <xpath>
    <from>//default:Parent/default:Child</from>
    <select>default:value</select>
    <from>../default:parentValue</from>
  </xpath>
</xml-source>
@Seddryck
Copy link
Owner Author

Seddryck commented Oct 6, 2019

Beta available in https://ci.appveyor.com/project/Seddryck/nbi/builds/27917260/artifacts or 1.21.0-beta0204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant