sbgn / libsbgn

Libraries for the Systems Biology Graphical Notation (SBGN); Java and C++
Other
15 stars 8 forks source link

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

Closed tczauderna closed 1 month ago

tczauderna commented 5 years ago

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?

fbergmann commented 5 years ago

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

fbergmann commented 5 years ago

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.

tczauderna commented 1 month ago

Fixed with commit 31244f8