problem of importing from graphml

Apr 10, 2012 at 8:54 AM
Edited Apr 10, 2012 at 10: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 )


<graphml xmlns="" xmlns:xsi="" xsi:schemaLocation="">
<key id="uid" for="node""uid" attr.type="double"/>
<key id="sex" for="node""sex" attr.type="string"/>
<key id="pic" for="node""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">






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






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




Thanks for help!!

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


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>


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

That line is what's causing the problem.

From the notes at, 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


Apr 10, 2012 at 5:06 PM

The new version of the Facebook NameGen tool is here:

Also see: for a native Facebook importer.



Apr 10, 2012 at 5:52 PM

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