Menu

#32 IO option for CMLWriter to not output the XML declaration

Accepted
closed
nobody
None
5
2012-10-28
2009-02-13
No

Right now, the CMLWriter always outputs this bit:

(or alike) which makes embedding it in other documents tricky... This patch adds an IO option to the writer for disabling this output. ?>

Discussion

  • Egon Willighagen

     
  • Egon Willighagen

    Two reviews please, as I like to see it in CDK 1.2.x.

    It's a fairly small patch, and that should not be the problem.

     
  • Egon Willighagen

    The CustomSerializer must be in org.openscience.cdk.libio.cml (at least not nu.xom), because the xom-1.1.jar is sealed which dissallows that.

     
  • Stefan Kuhn

    Stefan Kuhn - 2009-06-09

    The code is fine, I think. I don't understand the package structure. The package is nu.xom, but it is in cdk source? The patch seems to be from Bioclipse repository (at least cdk-externals sounds like Bioclipse for me), so I can't really see, where this is supposed to end up.

     
  • Egon Willighagen

    There is a nu.xom package because the customized class used for writing the CML is expected to be in that package.

    The patch seems from Bioclipse SVN, as it is already used by Bioclipse and originally developed there.

    Not sure what you mean with "where this is supposed to end up". Please explain.

     
  • Rajarshi Guha

    Rajarshi Guha - 2009-06-10

    patch looks OK to me (I was also confused as to why we have to havea nu.xom package in the CDK hierarchy. Egons explanation makes sense). But I cant apply the patch via git am or git apply

     
  • Egon Willighagen

    Rajarshi, I will rework my patch to be based on the latest git cdk-1.2.x.

     
  • Egon Willighagen

    New patch version uploaded, made against current git cdk-1.2.x.

    To be applied with 'git am'.

     
  • Rajarshi Guha

    Rajarshi Guha - 2009-06-12

    Looks good. Applied to cdk-1.2.x. Closing this report

     

Log in to post a comment.

MongoDB Logo MongoDB