apoc.load.xml

51 views
Skip to first unread message

koen

unread,
Dec 13, 2017, 8:27:26 AM12/13/17
to Neo4j
Hi, i am trying to load an xml file but keep getting an error like:

Failed to invoke procedure `apoc.load.xml`: Caused by: java.lang.Exception: java.net.UnknownHostException: test.xml

the cypher query:

call apoc.load.xml('file://test.xml','',{},TRUE) YIELD value return value


I can access apoc function and procedures and i also added the statement to the conf file to allow import via xml (apoc.import.file.enabled=true'

It can find the xml file

Any ideas ? Do i need more cypher around it to just load it (as a first step'

many than ks

regards koen

Michael Hunger

unread,
Dec 13, 2017, 8:45:38 AM12/13/17
to ne...@googlegroups.com
try file://path/to/test.xml



--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Koen Kleingeld

unread,
Dec 13, 2017, 11:32:14 AM12/13/17
to ne...@googlegroups.com
Hi, this seems to work (with file:///  .. i.e 3 slashed) although i assumed that the file location could be relative to the import directory and i did not get a file not found error .. anyways .. thanks !

regards koen



--
You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/nnjDhXDE-Rg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to neo4j+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Groeten / Best Regards,

Koen
Reply all
Reply to author
Forward
0 new messages