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

Extended content nodes in writer #44

Open
ianprime0509 opened this issue Jan 3, 2025 · 0 comments
Open

Extended content nodes in writer #44

ianprime0509 opened this issue Jan 3, 2025 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@ianprime0509
Copy link
Owner

It would be nice to have an API to write a single node's content to an XML document in a streaming manner. For text nodes, this is easy, as a simple std.io.AnyWriter wrapper can be written around the text function (though care must be taken to ensure this is done in a way that makes sense for XML raw and generic writers alike). However, for CDATA, comments, and PIs, this requires keeping track of additional state to know that the writer is inside an already open node (and close it when appropriate).

@ianprime0509 ianprime0509 added the enhancement New feature or request label Jan 3, 2025
@ianprime0509 ianprime0509 added this to the 0.3.0 milestone Jan 3, 2025
@ianprime0509 ianprime0509 mentioned this issue Jan 3, 2025
7 tasks
@ianprime0509 ianprime0509 modified the milestones: 0.3.0, 0.2.0 Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant