need help with xml request post body

I need someone to quickly tell me how to convert pretty xml like :

<?xml version = "1.0" encoding = "utf-8"?>

<!-- [login to view URL] -->

<?xml-stylesheet type = "text/xsl" href = "[login to view URL]" ?>


<year> 1977 </year>

<make> Cessna </make>

<model> Skyhawk </model>

<color> Light blue and white </color>


to this in nodejs :

'<?xml version = "1.0" encoding = "utf-8"?>\n<!-- [login to view URL] -->\n<?xml-stylesheet type = "text/xsl" href = "[login to view URL]" ?>\n<plane>\n <year> 1977 </year>\n <make> Cessna </make>\n <model> Skyhawk </model>\n <color> Light blue and white </color>\n</plane>'

So that I can use it to send POST request to an API.

important : it must be in nodejs

Квалификация: Express JS, Javascript, node.js, XML

Показать больше extjs post xml request, phpbb post body mail notification, need help post affiliate pro, how to post xml data in postman, curl send xml post request, rest api post json example, how to send post request to rest api, xml post request, postman request body xml, python requests post xml string, rest xml request example, post xml request companies house, email notification contain post body, human body outline post, phpbb include post body emails, site hav nice design body builders post, xml need help, need help dutch german post classified 2009, xml result van een html post, iphone project sample post xml request response

О работодателе:
( 15 отзыв(-а, -ов) ) REWA, India

ID проекта: #18607820

7 фрилансеров(-а) в среднем готовы выполнить эту работу за ₹1355


Нello Looks like it's pretty simple, there is just needed to insert \n just after end of each line. But I have follow question? How will you test? How can you make sure result is correct? Thanks.

₹600 INR за 1 день
(84 отзывов(-а))

Hi,  I am a Full stack developer in Microsoft technologies.  My area of expertise is web application development (asp.Net web forms, MVC, classic ASP), web services (SOAP & RESTFul), MySql & Sql Server as back end ( Больше

₹2250 INR за 1 день
(5 отзывов(-а))

I am an expert in XML conversion and I can provide you a same pattern in nodejs , I have created vast cms based on XML

₹3333 INR за 1 день
(11 отзывов(-а))

Hello, This could be achieved in a lot of ways depending on the source e.g. 1. use a regular expression to remove white space and replace \r\n and \n with \n. 2. require a library to parse xml. Call it's parser wi Больше

₹600 INR за 1 день
(7 отзывов(-а))

Hi, Try these statements. [login to view URL](/\r?\n/g, '\n'); Or [login to view URL](/\r?\n/g, '\\n'); where xml is your xml string. hope that it works Thanks

₹600 INR за 1 день
(4 отзывов(-а))

Hello, i can do it in 1-2 hours. please send source code. i return result. i can use team-viewer, if need. Pay only after complete

₹1250 INR за 0 дней(-я)
(6 отзывов(-а))
₹850 INR за 10 дней(-я)
(0 отзывов(-а))