Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
👋 hey there, thanks for creating this project!
ive been slowly working on building a netconf client in zig and am using zig-xml to parse responses from servers as well as craft messages to send to them. unless ive missed something (highly possible!) it seems that currently there is no way to set a non-prefixed namespace (or to set a default namespace basically) on an element.
im sure some netconf servers behave better than others but at the very least the ones ive been testing with seem to be quite upset at me when prefixing the base netconf namespace. for example, sending the output from something like this:
this server seems quite upset! with the changes here I can do all the same as above put set the prefix to
null
like:and my server happily returns its config.
im not super savvy on what is or is not in the xml standards or if this is something you'd be willing to include, but was messing around to see if I could get it to work so figured id just chuck a pr your way to see if you were interested!
ive updated the
bindNs
test w/ an element setup like this, and the conformance tests still seem to pass (zig build test
in the xmlconf directory seems happy still).feel free to close or holler if you'd like to see any changes. thanks again!
carl