node-xml
node-xml copied to clipboard
Fast and simple Javascript-based XML generator/builder for Node projects.
I'm implementing an Atom feed generator and I'd like to be able to disable the automatic string encoding.
I am trying to include my xsl stylesheet but somehow it doesn't work. **My code:** ```js xml( { "?xml-stylesheet": [{ _attr: { type: "text/xsl", href: "sitemap.xsl" } }], sitemapindex: [...
Smaller package means faster download and install :)
I ran this, let example3 = { annotation: {xxx: '1111', arr: [ { toy: 'Transformers' } , { toy: 'GI Joe' }, { toy: 'He-man' } ]} }; let result1...
When an empty array is used for content, there are no children. Currently it creates 2 empty strings as the children of the element, which then prevents `/>` from being...
The package claims that is needs no depenencies: https://www.npmjs.com/package/xml But I believe it rely on on Stream https://www.npmjs.com/package/xml
This change allows for multiple mixed data types in the xml JSON representation to be correctly produced in XML
The following is modified example from the readme: ```js var example5 = [{ toys: [{ _attr: { decade: '80s', locale: 'US' } }, { toy: [{ _attr: { decade: '80s',...
When multiple elements are passed into `xml()`, closing the first element should actually close the stream. The elements added to `xml()` should be closed in reverse order. Please check #30...