# strxml **Repository Path**: mirrors_mapbox/strxml ## Basic Information - **Project Name**: strxml - **Description**: Create xml with strings and concatenation. - **Primary Language**: Unknown - **License**: ISC - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-01-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://travis-ci.org/mapbox/strxml.svg)](https://travis-ci.org/mapbox/strxml) # strxml Create xml with strings and concatenation. ## install npm install --save strxml ## api * `tag(el, [attributes], contents)` * `tagClose(el, attributes)` * `encode(str)` * `attr(attributes)` ## example ```js var tag = require('strxml').tag; tag('Layer', tag('StyleName', 'style-' + i) + tag('Datasource', { name: 'layer-' + i, srs: WGS84 })); ```