Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Invalid XML character error when loading a gephi file #465

Closed
mbastian opened this Issue Nov 7, 2011 · 3 comments

Comments

Projects
None yet
1 participant
Owner

mbastian commented Nov 7, 2011

Stack trace:

Message: An invalid XML character (Unicode: 0xb) was found in the element content of the document.
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:594)
at org.gephi.data.attributes.serialization.AttributeRowSerializer.readRow(AttributeRowSerializer.java:159)
at org.gephi.data.attributes.serialization.AttributeRowSerializer.readRows(AttributeRowSerializer.java:115)
at org.gephi.data.attributes.serialization.AttributeRowPersistenceProvider.readXML(AttributeRowPersistenceProvider.java:80)

Owner

mbastian commented Nov 7, 2011

Might be an invalid character that succeed to be written but not read

See
http://blog.mark-mclaren.info/2007/02/invalid-xml-characters-when-valid-utf8_5873.html

Owner

mbastian commented Nov 7, 2011

Found a solution here: http://info.tsachev.org/2009/05/skipping-invalid-xml-character-with.html

We can implement a FilterReader before the string gets into the XMLStreamReader. That can be done at the level of the GephiReader in ProjectAPI module.

mbastian added a commit to mbastian/gephi that referenced this issue Nov 7, 2011

Owner

mbastian commented Nov 7, 2011

Fixed in commit 8f9dfd5

@mbastian mbastian closed this Nov 7, 2011

@ghost ghost assigned mbastian Nov 7, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment