1.0.0 • Published 5 years ago

strxml-es v1.0.0

Weekly downloads
78
License
ISC
Repository
github
Last release
5 years ago

Build Status

strxml-updated

This is merely a newly packaged version of strxml that can be npm installed normally.

Create xml with strings and concatenation.

install

npm install --save strxml

api

  • tag(el, [attributes], contents)
  • tagClose(el, attributes)
  • encode(str)
  • attr(attributes)

example

var tag = require('strxml').tag;

tag('Layer',
    tag('StyleName', 'style-' + i) +
    tag('Datasource', {
      name: 'layer-' + i,
      srs: WGS84
    }));