Removing SOAP XML headers in React Native

141 views Asked by At

I'm using node xml-js package for converting my response soap xml data to json. As json object I get this output.

{
  "SOAP-ENV:Envelope" : {
     "SOAP-ENV:Body": {
       "ns:anotherTitle": ...
    }
  }
}

and so on. What I want to do is remove this SOAP-ENV:, ns: for better json structure. How do I achieve this?

Thanks a lot.

0

There are 0 answers