Questions tagged [xml2js]

Simple XML to JavaScript object converter

Simple XML to JavaScript object converter. It supports bi-directional conversion. Uses sax-js and xmlbuilder-js.

More information on project page.

141 questions
-1
votes
1 answer

Parse result of XML -> XML2JS ->JSON.stringify using JQ

I have a file created by doing an XHR fetch of XML and parsing it through the node module xlm2js and then JSON.stringify. It has about 700 segments of two basic types. This is an edited version of the file with one segment of each type: { …
NetFool
  • 571
  • 1
  • 6
  • 11
-1
votes
2 answers

Undefined result when parse xml to json with xml2js node js

i got a problem when parsing an XML to JSON by using xml2js. Here's my xml. TABLE1Test 1TEST.CHEM.Customer 1
dityagow
  • 69
  • 12
-2
votes
1 answer

Working with an API which return a xml not patterned

I am requesting an API sending to it words to be searched then retrieving the data from the API. Unfortunately the xml tree is not patterned, so I need to parse the xml file for each word with if statement. like so: …
-4
votes
1 answer

Remove attribute from XML node?

I have some XML which I have to convert to JSON. The XML has nodes like The Steal In The Wheels I want to remove this xml:lang="en" from the xml nodes. Actually, I am working in node.js and I need title value. I am…
Jatinder Singh
  • 197
  • 3
  • 12
-4
votes
1 answer

Javascript iteration through XML tags

I have the following output from GET request: value1 value2 ... valuen I need to get all these values in an array like: [ value1, value2 .... value ] I tried to iterate increment a…
Vadim Novozhilov
  • 855
  • 9
  • 20
-5
votes
3 answers

Remove <> symbols from CDATA XML tag using regex

Lets say I have an XML document like this: Jon Doe 2001-02-01 2 and < 5 siblings]]]> …
ivan quintero
  • 1,240
  • 3
  • 13
  • 22
1 2 3
9
10