FasterXML / FasterXML/jackson-dataformat-xml

Write namespace declaration on root element only?

Ouverte
#670 4 commentaires 0 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

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`

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.