How do you trim the XMP XML contained within a jpg
Through the use of sanselan I've found that the root cause of iPhone photos imported to windows becoming uneditable is that there is content (white space?) after the actual XML (for more details and a linked example of the bad XMP XML see https://apple.stackexchange.com/questions/45326/why-can-i-not-edit-some-photos-imported-from-an-iphone-to-windows-vista ). I'd like to scan through my photo archive and 'trim' the XMP XML. Is there an easy way to do this? I have some java code that can recursively navigate my photo archive and DETECT the issue. I'm not sure how to trim and write the XML back