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

Abierto
#461 0 comentarios 2 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
rust
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Rust
Estrellas
1.6k
Forks
299
Merge medio
2 d 4 h
PR fusionados (30 d)
9

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de tafia/quick-xml

Todos los issues de tafia/quick-xml

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.