Quantcast
Channel: Create XML with XMLBUILDER2 in Nodejs - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by ISAE for Create XML with XMLBUILDER2 in Nodejs

Here is a working example:var {create} = require("xmlbuilder2");const R = [{name: 'foo1', sku: 'bar1'}, {name:'foo2', sku: 'bar2'}];let xml = create({ version: '1.0', encoding: "UTF-8"})...

View Article



Image may be NSFW.
Clik here to view.

Create XML with XMLBUILDER2 in Nodejs

I'm creating an XML file using a foreach to add the data.Problem:I need to create an ELEMENT < Listings > and inside it I need to put the children that will be Listing given .... < /Listing...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images