libsbgn icon indicating copy to clipboard operation
libsbgn copied to clipboard

Problems writing render extension, set DocumentBuilderFactory in SbgnUtil.addAnnotation namespace aware?

Open tczauderna opened this issue 6 years ago • 2 comments

I have some problems writing the render extension using milestone 3. I had already a brief discussion with Frank but there was not really a solution.

I think I have found a solution after further investigation.

I got it to work by setting the DocumentBuilderFactory namespace aware in SbgnUtil.addAnnotation

DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);

Before creating a pull request, can someone please check if this works for others as well?

tczauderna avatar Jun 13 '19 23:06 tczauderna

hello tobias, i'll have a look and add some test cases ...

fbergmann avatar Jun 14 '19 06:06 fbergmann

for me it works with the additional line, so i've committed it. If you have a specific error, we should add it as test case, so we can ensure it works across different java versions.

fbergmann avatar Jun 14 '19 12:06 fbergmann

Fixed with commit 31244f8

tczauderna avatar Oct 07 '24 17:10 tczauderna