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

Gephi XML parser fails when encountering U+0001 #1164

Closed
DavidBruant opened this issue Oct 27, 2015 · 1 comment
Closed

Gephi XML parser fails when encountering U+0001 #1164

DavidBruant opened this issue Oct 27, 2015 · 1 comment

Comments

@DavidBruant
Copy link

Related to MyWebIntelligence/MyWebIntelligence#216 (comment)
This issue was found in Gephi 0.8. I haven't tried on Gephi 0.9.

Try importing the following GEXF document in Gephi :

<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" version="1.2">
    <graph mode="static" defaultedgetype="directed">
        <attributes class="node">
            <attribute id="domain_title" title="domain_title" type="string"/>
        </attributes>
        <attributes class="edge">
            <attribute id="weight" title="weight" type="integer"/>
        </attributes>
        <nodes>
            <node id="n1" label="n1">
                <attvalues>
                    <attvalue for="domain_title" value="�a"/>
                <attvalues>
            </node>
        </nodes>
        <edges>
        </edges>
    </graph>
</gexf>

Note the funky character as attribute value, it's U+0001 (and this is where the XML parser trips).

This character is forbidden in XML 1.0 documents, but allowed in XML 1.1 documents. See https://en.wikipedia.org/wiki/Valid_characters_in_XML

@eduramiba
Copy link
Member

It loads fine with 0.9.2-SNAPSHOT now that we detect UTF-8 encoding in the XML header #474

@eduramiba eduramiba added this to the 0.9.2 milestone Aug 17, 2017
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

3 participants