Closed SimonIT closed 4 years ago
This might be a problem with the SAX parser and not something I can fix. Do you have a sample of the SVG you were loading that caused this issue?
Sadly no, I'm only using nidi3/graphviz-java and have actually no clue what it internally does. Maybe @nidi3 or @mx1up can give more details
Indeed, I believe it's a bad interaction between random
and SAX parser.
As far as I understand, random
should not generate chars < ' ', but somtimes SAX parser interprets some of them as < ' ' which are invalid inside XML.
I'll fix this in graphviz-java by replacing all chars < ' ' with ' '.
I thought it looks like an invalid XML syntax issue. Thanks for addressing this.
While using nidi3/graphviz-java with
RandomStringUtils.random(10)
from commons-lang, these exceptions occurred:See here nidi3/graphviz-java#130