python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
xml2js usage to build up nodes dynamically based on queried data - need <value>some data </value> zero to many times
I'm using xmlbuilder to generate an xml file dynamically from data in a query. For the retailerTypeId custom-attribute node I need to loop through an array of retailerTypeIds and add a value node for...
Jennifer
Votes: 0
Answers: 1
Typescript, xml2js, explicitArray - how to deal with child nodes
I use xml2js to translate one type of XML into an object in Typescript. With its explicitArray option, xml2js forces users to either always generate arrays for nodes (explicitArray=true), or make arra...
Felix van Hove
Votes: 0
Answers: 0
Convert entities when parsing XML to JSON using xml2js?
I'm using a class to convert xml to json for my project like so:
export class AccessionClass {
constructor(accessionFilename) {
this.accessionFilename = accessionFilename
this.accessionXML =...
Marvin Budd
Votes: 0
Answers: 2
xml2js parsed result without attributes
Using xml2js, what is the way to parse XML and return a result without the XML attributes?
E.g., for the input
<foo type="attr">bar</completion_date>
I wish to get
"foo&quo...
Mr.
Votes: 0
Answers: 1