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

Add support or mode to allow undefined namespaces #105

Open
aheiska opened this issue Sep 1, 2017 · 0 comments
Open

Add support or mode to allow undefined namespaces #105

aheiska opened this issue Sep 1, 2017 · 0 comments

Comments

@aheiska
Copy link

aheiska commented Sep 1, 2017

I currently often find my self in situation where i have a part of larger xml-messages where namespace declarations are way higher in document. It would be helpful if I could take a child tag and format it.

Currently indenting following snippet fails:

<foo:task id="46ea7" active="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="foo:Task"><foo:source device="xyz" sourceId="xyxxy" /></foo:task>

Adding an xmlns:foo="aaa" to observed root of course makes it work, but this is manual work and has to be repeated for every namespace found in the snippet.

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

No branches or pull requests

1 participant