Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error when exporting attributes containing a '&' sign #25

Open
gvegayon opened this issue Mar 15, 2015 · 1 comment
Open

Fatal error when exporting attributes containing a '&' sign #25

gvegayon opened this issue Mar 15, 2015 · 1 comment
Assignees
Milestone

Comments

@gvegayon
Copy link
Owner

Originally reported by: Tobias Jørgensen (Bitbucket: bornakke, GitHub: bornakke)


Hi George,

Thanks for a so needed R extension which I'm often using.

Currently I'm however encountering an error whenever I have attributes containing an & sign.

Code to reproduce the error:

#!r

library(igraph)
library(rgexf)
g <- erdos.renyi.game(100, 1/100)

g <- set.vertex.attribute(g, "test", index=V(g), "Some & Some")
gexf <- igraph.to.gexf(g)

Error given:
xmlParseEntityRef: no name
Error: 1: xmlParseEntityRef: no name

Any suggestions to why this might happen? In the current situation I can probably just remove any &, however it took me more than an hour to identify the cause of the error which is difficult to guess based on the error message.

Best regards
Tobias


@gvegayon
Copy link
Owner Author

Original comment by George Vega Yon (Bitbucket: gvegayon, GitHub: gvegayon):


Hi Tobias, I were able to reproduce the error message (thanks). Will fix it later.

Thanks!

George

@gvegayon gvegayon added this to the v1.16 milestone Nov 10, 2016
@gvegayon gvegayon self-assigned this Nov 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant