title: Graphical Visualization of XML data
body: <p>I have an XML file that looks like this:</p>
  
  <pre><code>&lt;rebase&gt;
     &lt;Organism&gt;
       &lt;Name&gt;Aminomonas paucivorans&lt;/Name&gt;
         &lt;Enzyme&gt;M1.Apa12260I&lt;/Enzyme&gt;
           &lt;Motif&gt;GGAGNNNNNGGC&lt;/Motif&gt;
         &lt;Enzyme&gt;M2.Apa12260I&lt;/Enzyme&gt;
           &lt;Motif&gt;GGAGNNNNNGGC&lt;/Motif&gt;
     &lt;/Organism&gt;
     &lt;Organism&gt;
      &lt;Name&gt;Bacillus cellulosilyticus&lt;/Name&gt;
         &lt;Enzyme&gt;M1.BceNI&lt;/Enzyme&gt;
           &lt;Motif&gt;CCCNNNNNCTC&lt;/Motif&gt;
         &lt;Enzyme&gt;M2.BceNI&lt;/Enzyme&gt;
           &lt;Motif&gt;CCCNNNNNCTC&lt;/Motif&gt;
     &lt;/Organism&gt;
  &lt;/rebase&gt;
  </code></pre>
  
  <p>I want to visualize this XML data into a graphical format. The connectivity is such that a lot of <code>enzymes</code> can contain common <code>motifs</code> but no <code>organims</code> can have similar <code>enzymes</code>. I looked at <a href="http://d3js.org/" rel="nofollow noreferrer">d3.js</a> but I dont think it has what im looking for. I was really excited with the visualization <code>neo4j</code> seems to provide but i will need to learn it from scratch. However I havent come across any good tutorials for importing or creating a graph in <code>neo4j</code> via XML datasets. I know in the world of programming anything is possible so I wanted to know the possible ways I could import my data (preferably using <code>python</code>) to a neo4j database to visualize it.  </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I tried following this <a href="https://stackoverflow.com/a/25113853/3133885">answer</a> (second answer under this question). I created the 2 <code>CSV</code> files that he suggested. However the query has a lot of syntax errors , such as :</p>
  
  <ol>
  <li><code>Invalid input 'S': expected 'n/N' (line 6, column 2)
  "USING PERIODIC COMMIT"</code></li>
  <li><code>WITH is required between CREATE and LOAD CSV (line 6, column 1)
  "MATCH (o:Organism { name: csvLine.name}),(m:Motif { name: csvLine.motif})"</code></li>
  </ol>
  
  <p>My <code>cypher</code> query skill are extremely limited and i couldnt get any <code>imports</code> to work so fixing the query by myself is proving to be really difficult. Any help will be greately appreciated</p>