MCPcopy
hub / github.com/scality/cloudserver / buildXML

Function buildXML

lib/routes/veeam/utils.js:113–116  ·  view source on GitHub ↗

* Builds a headless XML string wrapped in the standard SOSAPI XML declaration. * * @param {object} obj - JS object to serialize to XML * @returns {string} formatted XML file content

(obj)

Source from the content-addressed store, hash-verified

111 * @returns {string} formatted XML file content
112 */
113function buildXML(obj) {
114 const builder = new xml2js.Builder({ headless: true });
115 return buildHeadXML(builder.buildObject(obj));
116}
117
118/**
119 * Generic function to respond to user with data using streams

Callers 2

listVeeamFilesFunction · 0.70
buildVeeamFileDataFunction · 0.70

Calls 1

buildHeadXMLFunction · 0.85

Tested by

no test coverage detected