Skip to content

Preserve @version and @encoding outside of ?xml - #3

Open
onli wants to merge 2 commits into
xkwd:mainfrom
onli:main
Open

Preserve @version and @encoding outside of ?xml#3
onli wants to merge 2 commits into
xkwd:mainfrom
onli:main

Conversation

@onli

@onli onli commented Jan 7, 2026

Copy link
Copy Markdown

@version and @encoding were identified and removed by name. This adds a positional check: Only remove them if there is no element yet, which should limit this to the ?xml situation.

Fixes #2

@onli onli mentioned this pull request Jan 7, 2026
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

Successfully merging this pull request may close these issues.

OXML is stripping attributes named 'version' and 'encoding'

1 participant