Open ianprime0509 opened 1 year ago
The "elegant" API of a single writeEvent
function turns out to be terrible to use in certain cases, such as when writing the start of an element with attributes which may or may not be included based on runtime conditions. It can still exist, perhaps, but there should be another API which is more flexible with cases like this.
There should be some way to write XML content. There are several potential APIs that could be used here: perhaps the most "elegant" API would just be a
write
function which accepts a readerEvent
, but this may come with its own issues and needs to be thought through a bit more.Desired features:
--
which cannot appear in the content of a comment, and there's no way to escape it), etc.