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
1
vote
0 answers

How to parse typescript object with typed array(s) to xml including array object names

I am trying to convert the Person Typescript object to XML, but it is not including the "CAR" tag inside the conversion, how can I achieve this? Already tried with the libraries js2xmlparser and xml-js, working with Angular 8 and tried with…
Marny Lopez
  • 161
  • 2
  • 16
1
vote
0 answers

How to create a SOAP Request BODY from JSON?

I have created a node.js application to create a SOAP Request BODY from a JSON object. I have the following code var convert = require('xml-js'); var xml = `
Abdul Manaf
  • 4,933
  • 8
  • 51
  • 95
1
vote
0 answers

Removing SOAP XML headers in React Native

I'm using node xml-js package for converting my response soap xml data to json. As json object I get this output. { "SOAP-ENV:Envelope" : { "SOAP-ENV:Body": { "ns:anotherTitle": ... } } } and so on. What I want to do is remove…
tron
  • 113
  • 3
  • 10
1
vote
1 answer

How to get an object from an XML document?

When parsing documents using the excellent libxmljs library in Node.js, I stumbled across a case where a lot of nested elements were found, and the only thing I had to do was create a JS object from it. Here is what the code looks like : if…
Magix
  • 4,989
  • 7
  • 26
  • 50
1
vote
0 answers

Unable to install libxmljs on windows 10

I have the following softwares installed on my machine Windows 10 (64 bit) Node 4.2.6 (64 bit) Visual Studio 2013 i am trying to install node package "libxmljs" using the following command npm install libxmljs but im getting the following…
LP13
  • 30,567
  • 53
  • 217
  • 400
1
vote
1 answer

libxmljs "could not locate the bindings file" error (Windows)

I'm using a module called gulp-xml-editor which uses libxmljs. All working well on our Macs, but when I try on our Windows machine, I get: "Could not locate the bindings file" referring to the bindings dependency of libxmljs: C:\HiddenPath\App…
poshaughnessy
  • 1,978
  • 3
  • 21
  • 35
1
vote
1 answer

Wierd XML not being parsed

I'm facing a strange problem with parsing xml with libxmljs. It's not my first XML to parse and I've done quite a number of them, but this one acts really strange. I'm having these namespaces: var nsUri = { "xmlns:SOAP-ENV":…
Konstantin Bodnia
  • 1,372
  • 3
  • 20
  • 43
1
vote
1 answer

Error: Cannot find module 'libxmljs'

I am trying to parse xml using phantomjs for the following file, documentpreviewer1.js var webPage = require('webpage'); var page = webPage.create(); var url = "http://xxx/sitemap.xml"; page.open(url, function(status){ if(status !=…
Vinay Joseph
  • 5,515
  • 10
  • 54
  • 94
1
vote
1 answer

Error deploying a node/Express app on Windows Azure

I'm currently trying to deploy an Express/Node.js app on azure without much success -- the error I'm getting is the following: remote: > libxmljs@0.9.0 install D:\home\site\wwwroot\node_modules\libxmljs remote: > node-gyp rebuild remote: remote:…
lyyons
  • 393
  • 3
  • 11
1
vote
3 answers

Error while trying to install npm package 'libxmljs'

I am getting the following error message when I try to install libxmljs npm package. $ sudo npm install -g libxmljs npm http GET https://registry.npmjs.org/libxmljs npm http 200 https://registry.npmjs.org/libxmljs npm http GET…
shaunthomas999
  • 5,544
  • 2
  • 26
  • 30
1
vote
1 answer

Write libxmljs XML in to a file

I have a libxmljs XML object. I want to write it to a file; here is so far what I have. var libxml = require('libxmljs'); var xml = '' + '' + '' + …
Udy Warnasuriya
  • 959
  • 2
  • 12
  • 23
1
vote
1 answer

RangeError in libxmljs in NodeJS

I'm trying to replace lengthy XML tags with int values. Example '' as '<1>' so every tag with the name 'child' in the whole XML file will be replaces as '1'. I'm using libxmljs in NodeJS for this. So far my code is ; var libxml =…
Udy Warnasuriya
  • 959
  • 2
  • 12
  • 23
1
vote
1 answer

Prefix the result of a XPATH query

I use libxmljs to parse some html. I have a xpath query which has an "or" conjunction to retrieve basically the information of two queries Example doc.find("//div[contains(@class,'important') or contains(@class,'overdue')]") this returns all the…
silverfighter
  • 6,762
  • 10
  • 46
  • 73
0
votes
0 answers

How to get past security vulnerabilities reported in libxmljs Node package 1.0.9?

I have installed the libxmljs package at version 1.0.9. The code is working as expected, but I am hitting a couple of vulnerabilities during the scan that prevents the code from being deployed. These are coming from an underlying git submodule…
Jim
  • 119
  • 4
  • 14
0
votes
0 answers

libxmljs@0.19.10 install issue with node 12.19.1

Build error for installing libxmljs@0.19.10 for node 12 as shown below build error I am stuck on this since yesterday, any help would be appreciated. I tried few old versions as well but nothing works.