Skip to content

fix(xml): handle empty node with fields#121

Merged
fioncat merged 1 commit intomainfrom
fix/xml
Jan 27, 2026
Merged

fix(xml): handle empty node with fields#121
fioncat merged 1 commit intomainfrom
fix/xml

Conversation

@fioncat
Copy link
Copy Markdown
Owner

@fioncat fioncat commented Jan 27, 2026

Note

Ensures XML elements like "<node field1=\"v1\" field2=\"v2\"/>" are parsed with their attributes preserved.

  • In src/parse/xml.rs (read), when a node has no child content but has attributes, initialize child as an empty object so attributes are inserted into it
  • Maintains existing attribute ordering logic when merging into child

Written by Cursor Bugbot for commit 7996490. This will update automatically on new commits. Configure here.

@fioncat fioncat linked an issue Jan 27, 2026 that may be closed by this pull request
@fioncat fioncat merged commit 6b11fbe into main Jan 27, 2026
3 checks passed
@fioncat fioncat deleted the fix/xml branch January 27, 2026 05:22
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.

Fields rendered as null for large XMLs

1 participant