Newbie here. I need to import multiple xml files into Neo4j. Each file represents an entity, let's call it a Thing. The outer element is Things, so each file looks approximately like
<Things> <Thing ....> ... </Thing> </Things>
I can import one in the Neo4J browser using apoc.import.xml and get a reasonable looking graph.
Just not sure how to add a second (and subsequent) xml to the graph, nor how to do it in scala/java, which is where we want to get to.
Any help appreciated.
I assume that you know the scema for your xml markup.Then it is a better idea to write your own parsing and loading procedures and install them as a library on your production installation.
This library should be tailored as per your project needs/requirements.
Mr G Sameer Sudhir
Hi please let me know if you can share the code. I will be starting something similar soon. Is there some example of cycling through a directory full of files to import in the examples? My issue is that I have so many that if things break midway I'd like to restart where I left (parsing through the multiple XML files in a directory in my case).