From dd99a3158caa9c8fb31c7d6c9c0f6536376e2459 Mon Sep 17 00:00:00 2001 From: slomo Date: Sat, 22 Jan 2011 13:44:34 +0100 Subject: added tag support --- src/nodejs/xmlGenerator.js | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'src/nodejs/xmlGenerator.js') diff --git a/src/nodejs/xmlGenerator.js b/src/nodejs/xmlGenerator.js index 921056d..5846717 100644 --- a/src/nodejs/xmlGenerator.js +++ b/src/nodejs/xmlGenerator.js @@ -11,20 +11,19 @@ log.setLevel(config.logLevel); exports.createNode = function (node) { log.debug(node); var xmlNode = builder.begin('node') - .att('id', node.id) - .att('timestamp', node.timestamp) - .att('version', node.version) - .att('changeset', node.changeset) - .att('lat', node.lat) - .att('lon', node.lon); + .att('id', node.id) + .att('timestamp', node.timestamp) + .att('version', node.version) + .att('changeset', node.changeset) + .att('lat', node.lat) + .att('lon', node.lon); if(node.tags) { - var tags = node.tags; - for(var x=0;x