jakartaee / jakartaee/jaxb-api

Add support for unwrapping a XMLElement into other XMLElement

Open
#287 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
79
Forks
48
Avg merge
7h 12m
Merged PRs (30d)
2

Description

Looking for a solution to unwrap an XMLElement into other XML Element, similar to `@JsonUnwrapped`

Example :

**Car** class
```
public class Car {
private String carModel;
private Engine engine;
}
```

**Engine** class
```
public class Engine {
private String capacity;
private String power;
}
```

Expected XML for some scenarios should be like below.
```

Audi
500L
200

```

Contributor guide

Open the contributing guide

Research direction

Start with the Car and Engine examples in the issue and review the existing JAXB XML binding behavior and annotation support. Define what unwrapped output should mean for these classes and verify that the requested scenarios produce the expected XML.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.