FasterXML / FasterXML/jackson-dataformat-xml

Support some form of custom escaping of XML values written using Stax (Woodstox/Aalto) functionality

Ouverte
#75 10 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Java
Étoiles
631
Forks
246
Merge moyen
7 j 9 h
PR mergées (30 j)
13

Description

Currently `CharacterEscapes` system does not work for XML module, mostly because module has no direct control over output escaping. However, Stax2 extension that Woodstox (and Aalto I think?) implements does have similar functionality, using properties:
- P_TEXT_ESCAPER (for cdata)
- P_ATTR_VALUE_ESCAPER (for attribute values)

so it would be great to use that functionality to support needs for customized escapes, if at all possible. It is hard to say for sure whether that would work, but it should be easy enough to check.

**EDIT**: (30-Mar-2025)

It looks like the impedance b/w Jackson `CharacterEscapes` and Stax2 `EscapingWriterFactory` is too high to combine these 2 constructs, unfortunately.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.