radixo / libxml2-nodejs Goto Github PK
View Code? Open in Web Editor NEWA wrapper for libxml2 (or an attempt to)
License: BSD 2-Clause "Simplified" License
A wrapper for libxml2 (or an attempt to)
License: BSD 2-Clause "Simplified" License
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!
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.
Hello, is it possible to use stream xml parser: http://xmlsoft.org/xmlreader.html ?
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 "quotes"</root>
always transforms "
into "
, so that I am currently double-encoding entities before parsing, via content.replace(/&/g, '&')
to obtain the desired output.
But shouldn't xml.XML_PARSE_NOENT
avoid parsing entities in the first place, if passed as flag?
Thanks!
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.