Code Monkey home page Code Monkey logo

Comments (4)

Lojjs avatar Lojjs commented on August 22, 2024

@vunhatchuong123 Thanks for reporting. We will investigate and come back to you.

from apoc.

Lojjs avatar Lojjs commented on August 22, 2024

@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 &Ouml 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.

vunhatchuong avatar vunhatchuong commented on August 22, 2024

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    "&#214;" ><!-- capital O, dieresis or umlaut mark -->
<!ENTITY Oslash  "&#216;" ><!-- capital O, slash -->
<!ENTITY Ugrave  "&#217;" ><!-- capital U, grave accent -->
<!ENTITY Uacute  "&#218;" ><!-- capital U, acute accent -->

So because APOC fails to load dblp.dtd, it doesn't understand &Ouml.

from apoc.

Lojjs avatar Lojjs commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.