MCPcopy Create free account
hub / github.com/aliyun/openapi-core-nodejs-sdk / parseXML

Function parseXML

lib/roa.js:82–95  ·  view source on GitHub ↗
(xml)

Source from the content-addressed store, hash-verified

80}
81
82function parseXML(xml) {
83 const parser = new xml2js.Parser({
84 // explicitArray: false
85 });
86 return new Promise((resolve, reject) => {
87 parser.parseString(xml, (err, result) => {
88 if (err) {
89 return reject(err);
90 }
91
92 resolve(result);
93 });
94 });
95}
96
97class ACSError extends Error {
98 constructor(err) {

Callers 2

requestMethod · 0.85
roa.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected