need help with xml request post body
₹600 INR
Paid on delivery
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]" ?>
<plane>
<year> 1977 </year>
<make> Cessna </make>
<model> Skyhawk </model>
<color> Light blue and white </color>
</plane>
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
Project ID: #18607820
About the project
6 freelancers are bidding on average ₹1025 for this job
Н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.
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 More
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 ( More
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