FasterXML / FasterXML/jackson-dataformat-xml

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

未關閉
#75 10 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Java
星號
631
分支
246
平均合併
7 天 9 小時
30 天內合併 PR
13

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。