You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Normally I would use something like StringEscapeUtils from the Apache Commons Lang but because you are not using external libraries (at least I don't see them), you might at least check what they are doing and apply something similar.
The text was updated successfully, but these errors were encountered:
piotr-gawron
changed the title
setting notes that are invalid xml throws com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '<'
setting notes that is invalid xml throws com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '<'
Apr 20, 2018
Here is an example that leads to this exception:
The solution to such problem would be encoding the string before surrounding it with xml tags here:
https://github.com/sbmlteam/jsbml/blob/master/core/src/org/sbml/jsbml/util/StringTools.java#L651
Normally I would use something like StringEscapeUtils from the Apache Commons Lang but because you are not using external libraries (at least I don't see them), you might at least check what they are doing and apply something similar.
The text was updated successfully, but these errors were encountered: