We want to use JAXB to create Java objects from XML files, manipulate them and save them back into XML files. This is not a problem in principle. However, the source XML files contain processing instructions, which are not stored back into the target XML files.
Example:
<?xml version="1.0" encoding="UTF-8"?>
<doc>
<test>
<?PITarget1 PIContent2?>
</test>
</doc>
Is there any way to do this with JAXB? Or is there an alternative to JAXB which can?
Thanks for your help.