Giter Club home page Giter Club logo

libxml2-nodejs's People

Contributors

dependabot[bot] avatar radixo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

libxml2-nodejs's Issues

xml.xmlGetProp needs to know in advance attribute names

It looks like xml.xmlGetProp is exported, but there's no way to retrieve all node/element attributes, unless I am missing something in the documentation.

Any plan to implement this? It's likely the only missing thing to be able to create Web like DOM utilities for HTML documents.

Thanks!

xmlAddChild but no xmlRemoveChild

Assuming this would remove the node from its current container, I am using a work around such as:

xmlAddChild(xmlNewNode(null, 'trashbin'), node);

that is to remove node from its tree, but I am not sure this is the best way to go.

xml.XML_PARSE_NOENT looks irrelevant

First of all, this is awesome, thanks for it!

So far everything seems to work over my expectations, considering how little known is this module, but as I'm using this to parse also HTML files, after adjusting few things here and there, I wonder if I'm doing something wrong, or if xml.XML_PARSE_NOENT really gets ignored.

Basically, having this string <root>test &quot;quotes&quot;</root> always transforms &quot; into ", so that I am currently double-encoding entities before parsing, via content.replace(/&/g, '&amp;') to obtain the desired output.

But shouldn't xml.XML_PARSE_NOENT avoid parsing entities in the first place, if passed as flag?

Thanks!

Is this module abandoned?

As I keep filing issues and trying to make this work as expected, but as no answer has ever been provided, I wonder what is the current state of this module.

The broken attributes parsing is the most important thing I'd like to help fixing, but even the amazon host returns a not found, and I wonder if the library behind is also stuck at an older version.

Thanks for any sort of clarification regarding this.

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.