I'm desperatly trying to insert a comment in a DOM tree between the xml declaration and the root element, something like :
<?xml version="1.0" ?>
<!-- My comment -->
I've tried in Java the following stuff :
Comment comm = doc.createComment("My comment");
... but it does not work.
Any help would be welcome !
Thanks a lot,