FasterXML / FasterXML/jackson-dataformat-xml

Write namespace declaration on root element only?

未关闭
#670 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
631
派生
246
平均合并
7 天 9 小时
30 天内合并 PR
13

描述

Hello and thank you for such an awesome project!

I'm using dataformat-xml to create a video manifest (MPEG-DASH mpd), and for aesthetic reasons I'd really like if it could write all namespace declarations on the root element.

The XML I generate currently looks like this:
```xml


https://example.com/license

```

but I want to move the "xmlns:dashif="https://dashif.org/guidelines/clearKey"" to . Like this:

```xml


https://example.com/license

```

Is it possible to configure / override something in XmlMapper or Woodstox to make this work?

Thanks a lot,
Anton

Java 21 with `com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.17.2`

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。