Tuesday, 2 May 2017

Having difficulty with xml2js on Xml->Json->Xml in NodeJS

I want to parse xml, convert it to json, edit the string and then convert it to Xml. So far i've managed to parse xml file with xml2js module, change it to json, find and replace the string, but when i tried to convert it back to xml with buildObject() it will convert to incorrect Xml format.This is my current code: http://ift.tt/2psX7vN is my unchanged xml: http://ift.tt/2quHvpI is my changed xml: http://ift.tt/2psWvWN is what i need: http://ift.tt/2quzuRM tip/help is more than welcome

Submitted May 02, 2017 at 05:30PM by When_The_Dank_Hits

No comments:

Post a Comment