O'Reilly logo

Learning Neo4j 3.x - Second Edition by Rik Van Bruggen, Jérôme Baton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Importing from an XML source 

If you have to import data from an XML source, APOC has your back again. Valid XML sources have a main advantage to already have been validated against an XSD schema (or a DTD).

Let's import some countries again, but this time by continent. Here is the XML, it is hand-written and voluntarily short, so do not feel offensed if you do not find your country in this list:

<?xml version="1.0"?><earth> <continent name="Africa">    <country name="Morocco" money="Dinar"/> </continent> <continent name="Europe">    <country name="France" money="Euro"/>    <country name="Germany" money="Euro"/> </continent> <continent name="Asia">   <country name="China" money="Yuan"/>   <country name="Japan" money="Yen"/> </continent></earth>

There ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required