From 8f3aaad7210274d49af81b504cb7fc81158e830a Mon Sep 17 00:00:00 2001 From: Mark Engel Date: Fri, 21 Jan 2011 19:59:09 +0100 Subject: added opts for command line parsing --- src/nodejs/xmlGenerator.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/nodejs/xmlGenerator.js') diff --git a/src/nodejs/xmlGenerator.js b/src/nodejs/xmlGenerator.js index e982e18..5dc0efa 100644 --- a/src/nodejs/xmlGenerator.js +++ b/src/nodejs/xmlGenerator.js @@ -24,7 +24,7 @@ exports.createNode = function (row) { .att('v',escape(temp[x+1])); } return builder.toString({ pretty: true }); -} +}; exports.createWay = function (row) { var way = builder.begin('way') @@ -39,14 +39,12 @@ exports.createWay = function (row) { .att('k',escape(temp[x])) .att('v',escape(temp[x+1])); } - var temp = row.nodes.replace("{","").replace("}","").split(","); - for(var x=0;x