quick-xml icon indicating copy to clipboard operation
quick-xml copied to clipboard

Expose a way to iterate over `DeEvent`s

Open iliazeus opened this issue 1 year ago • 1 comments

Right now, there are two main ways to use this library:

  • a rather low-level one, using a Reader
  • a very high-level one, with serde

I would like to have an in-between option, one that still has a pull-based interface, but that would still do a lot of the low-level stuff by itself - like gluing together and trimming Texts, for example.

From what I understand, such an interface already exists internally - I mean the de::XmlReader::next() function, which satisfies all of the above. However, it is not currently exposed publicly, even though the DeEvents themselves are.

iliazeus avatar Aug 29 '24 15:08 iliazeus

Yes, I plan to do such intermediate interface, I outlined a very brief sketch of it in https://github.com/tafia/quick-xml/pull/766#issuecomment-2198637734

Mingun avatar Aug 29 '24 16:08 Mingun