Node.JS “echo” XML

crzyvirus

New Member
I am coming from PHP development.Suppose I am getting an associative array from MySQL, Mongo, or any other DB,I would like to return XML with Node.Usually, with PHP I would have done the following (pseudocode)\[code\]econding: xml - utf8echo "<items>"foreach(items as item) { echo "<item>" echo "<surname>" . $item['surname'] . "</surname>" echo "<name>" . $item['name'] . "</name>" echo "</item>"}echo "</items>"\[/code\]How do I "translate" this into node?
 
Back
Top