FasterXML / FasterXML/jackson-dataformat-xml
How to avoid wstxns1: prefix
- Langage dominant
- Java
- Étoiles
- 631
- Forks
- 246
- Merge moyen
- 7 j 9 h
- PR mergées (30 j)
- 13
Description
Given the following classes
RootNamespace.java
```
@JacksonXmlRootElement(namespace = "namespace1", localName = "RootNamespace")
public class RootNamespace {
@JacksonXmlProperty(namespace = "namespace1", localName = "childNamespace")
private ChildNamespace childNamespace;
}
```
ChildNameSpace.java
```
public class ChildNamespace {
@JacksonXmlProperty(namespace = "namespace2", localName = "Name")
private ThirdLevel thirdLevel;
}
```
ThirdLevel.java
```
@Setter
@Getter
public class ThirdLevel {
@JacksonXmlProperty(namespace = "namespace2", localName = "Name")
private String name;
}
```
and It is generating the following output when I convert it into string
```
```
and I would like to generate it the following
```
```
Is it possible to do. Any help is greatly appreciated.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.