Expose a way to iterate over `DeEvent`s

Open
#799 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
backend

Research direction

Start by reading the internal de::XmlReader::next() implementation and the public DeEvent API to understand how events are produced and what low-level work the reader performs. The request is to expose a pull-based interface that handles tasks such as gluing and trimming Texts; done means callers can use that interface publicly. The issue has had no comment activity for 785 days, so check whether this work is still wanted.

Written by the indexing model from the issue text.

Description

enhancement

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.

Dominant language
Rust
Stars
1.6k
Forks
299
Avg merge
2d 4h
Merged PRs (30d)
9

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tafia/quick-xml

All issues in tafia/quick-xml

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.