Appcelerator Blog

The Leading Resource for All Things Mobile

XML2TSS is a command-line tool written by Titanium Titan David Bankier (@davidbankier) that analyzes your XML files, identifies IDs and Classes and automatically generates a template TSS file with said content. This small app is so useful that was recently merged into Alloy and will be available as one of Alloy’s official features. But you don’t have to wait to start taking advantage of it. You can start now and here’s how.

The tool is a Node.js script available via NPM. To install it, go to your terminal/command window and type:

sudo npm install -g xml2tss

This will install xml2tss globally in your computer. There are different ways of using it as explained in the GitHub Repo, but here’s the basic usage.