Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354286

Summary: Add support for Adding Processing Instructions
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: 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:

Description Blaise Doughan CLA 2011-08-09 14:21:18 EDT
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>
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:29:12 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink