FasterXML / FasterXML/jackson-dataformat-xml

Write namespace declaration on root element only?

オープン
#670 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
631
フォーク
246
平均マージ
7日 9時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。