problem of importing from graphml

Apr 10, 2012 at 7:54 AM
Edited Apr 10, 2012 at 9:08 AM

I have used NodeXL for few days, and this is the first time I face this kind of problem about importing, as bellow...

After I imported one graphml file,

it says that

"The file could not be open. Details: AnXML node with the name "edge" is missing a required

descendent node whose value must be a non-empty String. The XPath is@target""

I don't know what happened to it, please help me to figure out!

 

contents of that file is as bellow....

(which is created by FB website https://apps.facebook.com/namegenweb )

 

<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<key id="uid" for="node" attr.name="uid" attr.type="double"/>
<key id="sex" for="node" attr.name="sex" attr.type="string"/>
<key id="pic" for="node" attr.name="pic" attr.type="string"/>
<graph id="G" edgedefault="undirected">
<node id="xxx">
<data key="uid">123456</data>
<data key="sex">male</data>
<data key="pic">
https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc4/xxxx.jpg
</data>
</node>

 

.....

.....

.....

 

<edge source="xxx" target="aaa"></edge>
<edge source="xxx" target="bbb"></edge>
<edge source="ccc" target="ddd"></edge>

 

.....

.....

.....

 

<edge source="eee" target="TongTongTsai"></edge>
</graph>
</graphml>

 

 

 

Thanks for help!!

Apr 10, 2012 at 3:23 PM
Edited Apr 10, 2012 at 3:24 PM

Lynn:

NodeXL is complaining that the GraphML file from namegenweb contains an invalid edge.

There are a bunch of lines in the file that look something like this:

<edge source="xxx" target="aaa"></edge>

That's GraphML-speak for "there is an edge that connects the source vertex named xxx to the target vertex named aaa."  Both the "source" and the "target" are required, because you can't have an edge that doesn't connect to two vertices.  In your file, NodeXL has found an edge that is missing a target.  Look through the entire file, and I bet you'll find a line that looks something like this:

<edge source="ccc" target=""></edge>

or

<edge source="ccc"></edge>

That line is what's causing the problem.

From the notes at  https://apps.facebook.com/namegenweb, it looks like namegenweb is no longer supported and has been replaced with newer software.  You might contact Bernie Hogan about this GraphML problem, but I bet he would just point you to the newer software.

-- Tony

 

Coordinator
Apr 10, 2012 at 4:06 PM

The new version of the Facebook NameGen tool is here: https://apps.facebook.com/namegendev/

Also see: http://socialnetimporter.codeplex.com/ for a native Facebook importer.

-

Marc

Apr 10, 2012 at 4:52 PM

ok, I understand, and the problem has been solved.....thanks a lot~!! :)