خرید بک لینک

Vote count: 0

Just starting to work with node-red and having trouble getting XML loaded into a javascript object msg.payload that node-red needs for sending a post request to my server.

My API is looking for the following:

  <?xml version="1.0" encoding="UTF-8"?>
  <userRequest>
      <authentication>
          <useame>foo</useame>
          <password>bar</password>
      </authentication>
      <action>doit</action>
  </userRequest>

But without escaping the XML, I can't get it loaded into the object. And I can't find the right way to escape it.

Advice?

asked 38 secs ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 26 ارديبهشت 1395 ساعت: 11:13

صفحه بندی