I have developed an ATOM feed using the eclipse IDE. The ATOM feed is based on the org.apache.wink.common.model.atom.AtomFeed. The xml content is generated using JAXB. Everything works correctly; however, I need to add a processing instruction to the atom feed and it appears that there is no exposed method available that allows me to do this.
The first line in the xml is the standard
<?xml version="1.0......etc>
I need to add an additional
<?bla bla ?>
instruction after this entry.
I need some way to insert this instruction before returning the feed. There is an unmarshal method that is available and I was wondering if I could somehow unmarshal the feed, add the processing instruction and then marshal the feed back for the return object. This seems like a hack but I've run out of ideas!
I've searched everywhere and I just can't seem to locate any solid examples showing how this can be achieved. Any help/alternatives would be greatly appreciated.