| Summary: | Add support for Adding Processing Instructions | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Blaise Doughan <blaise.doughan> |
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| URL: | http://stackoverflow.com/questions/6931520/how-to-add-xml-processing-instructions-during-jaxb-marshal | ||
| Whiteboard: | |||
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
The following annotation could be added to support adding processing instructions into the marshalled document: @XmlProcessingInstruction(target="foo", data="bar") public List<String foo> getFoo() { return foo; } Would result in the following XML: <?foo bar?> <foo>A</foo> <foo>B</foo> <foo>C</foo>