Questions tagged [libxml-js]

libxml bindings for v8 javascript engine.

libxml bindings for v8 javascript engine.

Download at https://github.com/polotek/libxmljs

47 questions
6
votes
0 answers

node.js - "libxmljs" module error

node -v v4.4.7 npm -v v2.15.8 node-gyp -v v3.4.0 I'm trying to run my node app which uses libxmljs module and i'm getting this wierd error: libxmljs/node_modules/bindings/bindings.js:83 throw e ^ Error:…
ohadinho
  • 6,894
  • 16
  • 71
  • 124
5
votes
2 answers

Error: Cannot find module 'xml2json'

When run my project package, i have getting above title error, after i trying to install that packages using npm install xml2json but, i have getting below error only, can you pls give me suggestions or idea to get out from this…
R.G.Krish
  • 487
  • 5
  • 22
5
votes
3 answers

Invalid XSD schema using libxmljs with nodejs

I've posted an issue on libxmljs repository and it was closed because they think that this isn't a problem at the level of the lib. So I post it here. I'm trying to validate a XLIFF file with a XML schema provided by OASIS but I keep receiving an…
Ismael
  • 320
  • 4
  • 15
3
votes
4 answers

Cypress.io - sitemap.xml validation test

:) I chose for automated testing a tool Cypress.io. I need some tests for my sitemap.xml document and I dont know how to do that :( I have tried install an npm package libxmljs npm install libxmljs --save and load it as plugin in…
3
votes
2 answers

Node doesn't gc my object properly

Here's a simple case: let html = `<>` var libxmljs = require("libxmljs"); class MyObject{ constructor(html){ this.doc = libxmljs.parseHtml(html); this.node = this.doc.root() } } let obj for(var i = 0; i < 100000;…
pguardiario
  • 53,827
  • 19
  • 119
  • 159
3
votes
2 answers

npm install - error This version of node/NAN/v8 requires a C++11 compiler libxmljs@0.18.0 node-gyp rebuild

I'm running CentOS 6.8(Final) using Vagrant/VirtualBox. GCC compiler version is (v4.4.7) Node version (latest LTS): v4.4.6 My package.json file has: { "name": "njse", "main": "server.js", "description": "MyCompany services", "repository":…
AKS
  • 16,482
  • 43
  • 166
  • 258
3
votes
0 answers

Can we Copy & Paste node modules?

Normally we supped to use "npm" to install node modules. However, one of the node module in our projectis libxmljs This module has two issues 1> The version (v 0.17.1) cannot be installed on windows machine. Issue392 2> It needs VS 2013 or 15 to…
LP13
  • 30,567
  • 53
  • 217
  • 400
3
votes
1 answer

libxmljs installation : /bin/sh: 1: node: not found

I am trying to install libxmljs on Ubuntu Server 12 I ran the following command sudo npm install libxmljs and i get the following error. npm http GET https://registry.npmjs.org/libxmljs npm http 304 https://registry.npmjs.org/libxmljs npm http GET…
Vinay Joseph
  • 5,515
  • 10
  • 54
  • 94
2
votes
0 answers

Problem installing libxmljs - ERROR - "npm i libxmljs"

I need to install libxmljs. I have problems installing libxmljs. Node version: 17.1 npm version: 8.1.2 node-pre-gyp@0.17.0 I am getting the following error message when I try to install libxmljs npm package. When I do "npm i libxmljs", it shows: npm…
mimiranda
  • 51
  • 2
2
votes
2 answers

libxmljs not working with Node 12.19.0 on windows

I am using Node version 12.19.0 and NPM version 6.14.8 on windows. I tried to install latest version and got 0.19.7 and did not face any issue in installation. E:\SS\Service>npm install libxmljs > libxmljs@0.19.7 install…
pooja
  • 319
  • 1
  • 2
  • 21
2
votes
1 answer

Node.js - XML validation

How do you validate xml in node.js? I'm mainly interested in checking only if the file is well formed. Additionally I want to receive a line number where error occurs. I have the following test xml:
eko
  • 369
  • 4
  • 15
2
votes
2 answers

Nodejs libxmljs crashes docker container when xml fails schema validation

I'm making a web service in NodeJs that needs to support a specific xml request. So I'm using libxmljs to parse xml and validate it against an xsd. On my Windows machine everything works well, so when doing this: isValid =…
TBear
  • 93
  • 1
  • 7
2
votes
2 answers

I am parsing a XML file using libxmljs and .get() always returns the first child

I have been looking at this code for hours and I can't make it work, and I don't know why. var libxmljs = require("libxmljs"); var xml = '' + '' + '' + …
2
votes
0 answers

How to create text node in libxmljs

I have searched the documentation at https://github.com/polotek/libxmljs/wiki but fails to find out how to create plain text nodes. Here is my node.js code: var libxmljs = require('libxmljs'); var xmlStr = '

bar…

Lilleman
  • 7,392
  • 5
  • 27
  • 36
2
votes
2 answers

Error building libxmljs for node.js

I'm having a problems building libxmljs on my mac os x 10.9.3. Here's what I'm getting: 3 warnings generated. CC(target) Release/obj.target/libxml/vendor/libxml/xpointer.o LIBTOOL-STATIC Release/xml.a libtool: unrecognized option…
Konstantin Bodnia
  • 1,372
  • 3
  • 20
  • 43
1
2 3 4