Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-04-2021 06:09 AM
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.
02-13-2022 07:31 PM
I am facing similar situation, were you able to solve import of multiple xml?
02-14-2022 03:13 AM
Hello Paritosh
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.
Many thanks
Mr G Sameer Sudhir
02-23-2022 07:10 PM
Thank you for response.
Currently, working on cypher using FOREACH and SET.
As suggested for library, I am tinkering to use Spring and OGN framework and handle through Java.
is this right approach?
02-23-2022 10:57 PM
Looks good.Please let me know once you are done with your modular proc.
Many thanks
Mr Sameer Sudhir Gijare
05-19-2022 07:15 AM
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).
All the sessions of the conference are now available online