scarabaeus / xml2js-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xml2js

https://www.npmjs.com/package/xml2js

Input:

<SOAP-ENV:Body xmlns:m = "http://www.xyz.org/quotation">
  <m:GetQuotationResponse>
    <m:Quotation>Here is the quotation</m:Quotation>
  </m:GetQuotationResponse>
</SOAP-ENV:Body>

Output:

{
  "result": {
    "SOAP-ENV:Body": {
      "$": {
        "xmlns:m": "http://www.xyz.org/quotation"
      },
      "m:GetQuotationResponse": [
        {
          "m:Quotation": ["Here is the quotation"]
        }
      ]
    }
  }
}

Related:

Download Stats:

About


Languages

Language:TypeScript 100.0%