Comments (4)
@vunhatchuong123 Thanks for reporting. We will investigate and come back to you.
from apoc.
@vunhatchuong123 First a caveat; I'm part of the team working with APOC but I have not very much experience with XML in particular. I wonder if this is really a valid XML file. I tried to upload your XML data to two different online XML formatters, https://www.freeformatter.com/xml-formatter.html and https://jsonformatter.org/xml-formatter, to see how they behave compared to APOC. The first one errors with the similar error Unable to parse any XML input. Error on line 3: The entity "Ouml" was referenced, but not declared.
. The second one does accept Ö
but render it as is rather than format it into an Ö
. Do you have earlier experience where XML handling works as you expect it?
Best regards Louise Söderström
Ps. I do see the usefulness of your request, myself having 2 Ö in my name. ;)
from apoc.
I stopped using neo4j right now so I won't be able to help that much but I'll try my best.
I think the problem comes from APOC not able to process dtd type definition
files, specifically in this case it's dtd entity definitions
. This dataset comes from DBLP, and in it there's a dblp.dtd
file.
Here's a preview of that file:
<!ENTITY Ouml "Ö" ><!-- capital O, dieresis or umlaut mark -->
<!ENTITY Oslash "Ø" ><!-- capital O, slash -->
<!ENTITY Ugrave "Ù" ><!-- capital U, grave accent -->
<!ENTITY Uacute "Ú" ><!-- capital U, acute accent -->
So because APOC fails to load dblp.dtd
, it doesn't understand Ö
.
from apoc.
Thanks for coming back with more information. We have made a conscious decision not to support DTD files of security reasons. I will see if we can improve our documentation around this so it is more clear it is not supported.
from apoc.
Related Issues (20)
- apoc.load.json treats windows filepath as relative no matter what HOT 1
- Docker usage documentation Inconsistency HOT 1
- The apoc.export.csv.all doesn't export quotes with bulkImport: true HOT 1
- Strange behavior of apoc.agg.statistics HOT 4
- Add an option to apoc.load.xml to add the element prefix in '_prefix' instead of only the local element name in '_type' HOT 1
- Using virtual nodes in Cypher HOT 6
- APOC 5.14.0 Crashes Neo4j On Startup HOT 11
- apoc.periodic.repeat does not affect HOT 1
- IndexEntryConflictException with apoc.merge.node HOT 2
- Unable to see apoc meta schema or apoc meta data HOT 2
- apoc.create.virtual.fromNode should wrap the existing node while keeping it's node-id and elementId but it doesn't HOT 4
- Data format discrepancy with and without using the option bulkImport: true HOT 1
- apoc.meta.data() fails when there is a relationship-type `RELATIONSHIP` breaks GenAI integrations HOT 6
- Failed to invoke procedure `apoc.meta.data`: Caused by: java.lang.IllegalArgumentException: duplicate element: RELATIONSHIP HOT 4
- RBAC Major security flaw HOT 2
- [apoc.spatial.geocodeOnce] Run failed HOT 2
- apoc.do.case not populating UpdateStatistics HOT 1
- Cypher script generated by apoc.export.cypher.all leaves the temporary `UNIQUE IMPORT ID REL` relationship properties HOT 1
- Inconsistent treatment of escape character "\" when performing apoc.import.csv on nodes vs relationships HOT 5
- PageGraph GraphML file cannot be imported: Failed to invoke procedure `apoc.import.graphml`: Caused by: java.lang.NullPointerException: Cannot invoke "String.split(String)" because "id" is null HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apoc.