There should be a configuration option for skipping non-meaningful text events in-between XML tags

Aperta
#461 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust
Ambito
backend

Direzione di ricerca

Start by reading the related issues #285 and #414 and the existing BOM stripping behavior in quick-xml. Then trace how the parser emits Text events between XML tags and identify where a configuration option could filter whitespace and preamble text. Done means the option handles those cases and replaces the current BOM stripping behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

We should provide an option which would address https://github.com/tafia/quick-xml/issues/285#issuecomment-1199756671 by trimming away Text events that do not have meaning to XML (e.g. whitespace between elements, or text prior to the first XML open tag which may include a BOM character)

To a first approximation this option essentially filters out things which aren't relevant to the information payload of an XML document, such as formatting. This should replace the existing BOM stripping behavior.

Related to https://github.com/tafia/quick-xml/issues/285 and https://github.com/tafia/quick-xml/issues/414

Lingua principale
Rust
Stelle
1.6k
Fork
299
Merge medio
2g 4h
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di tafia/quick-xml

Tutte le issue di tafia/quick-xml

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.