Giter Club home page Giter Club logo

Comments (2)

WebReflection avatar WebReflection commented on September 16, 2024

Another issue I have, ironically via the Wikipedia page for libxml2:

<ul class="vector-menu-content-list">
  <li class="interlanguage-link interwiki-de"><a href="https://de.wikipedia.org/wiki/Libxml2" title="Libxml2 – German" lang="de" hreflang="de" class="interlanguage-link-target">Deutsch</a></li>
  <li class="interlanguage-link interwiki-es"><a href="https://es.wikipedia.org/wiki/Libxml" title="Libxml – Spanish" lang="es" hreflang="es" class="interlanguage-link-target">Español</a></li>
  <li class="interlanguage-link interwiki-hy"><a href="https://hy.wikipedia.org/wiki/Libxml2" title="Libxml2 – Armenian" lang="hy" hreflang="hy" class="interlanguage-link-target">Հայերեն</a></li>
  <li class="interlanguage-link interwiki-it"><a href="https://it.wikipedia.org/wiki/LibXML2" title="LibXML2 – Italian" lang="it" hreflang="it" class="interlanguage-link-target">Italiano</a></li>
  <li class="interlanguage-link interwiki-he"><a href="https://he.wikipedia.org/wiki/Libxml2" title="Libxml2 – Hebrew" lang="he" hreflang="he" class="interlanguage-link-target">עברית</a></li>
  <li class="interlanguage-link interwiki-nl"><a href="https://nl.wikipedia.org/wiki/Libxml2" title="Libxml2 – Dutch" lang="nl" hreflang="nl" class="interlanguage-link-target">Nederlands</a></li>
  <li class="interlanguage-link interwiki-no"><a href="https://no.wikipedia.org/wiki/Libxml2" title="Libxml2 – Norwegian Bokmål" lang="nb" hreflang="nb" class="interlanguage-link-target">Norsk bokmål</a></li>
  <li class="interlanguage-link interwiki-pl"><a href="https://pl.wikipedia.org/wiki/Libxml" title="Libxml – Polish" lang="pl" hreflang="pl" class="interlanguage-link-target">Polski</a></li>
  <li class="interlanguage-link interwiki-ru"><a href="https://ru.wikipedia.org/wiki/Libxml2" title="Libxml2 – Russian" lang="ru" hreflang="ru" class="interlanguage-link-target">Русский</a></li>
  <li class="interlanguage-link interwiki-zh"><a href="https://zh.wikipedia.org/wiki/Libxml2" title="Libxml2 – Chinese" lang="zh" hreflang="zh" class="interlanguage-link-target">中文</a></li>
</ul>

due those weird Libxml2 – German title attributes, the parser bails out and the dump is unexpected. This both with NOENT flag in or out.

from libxml2-nodejs.

WebReflection avatar WebReflection commented on September 16, 2024

@radixo FYI I've tried python bindings and after putting previous content into text/xml:

import libxml2

doc = libxml2.parseFile("test.xml")
print(doc.children.children.next.children.properties.next)
doc.freeDoc()

the result is title="Libxml2 &#x2013; German" so it looks like there's something weird going on with this implementation

from libxml2-nodejs.

Related Issues (5)

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.