* 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)
| 111 | * @returns {string} formatted XML file content |
| 112 | */ |
| 113 | function 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 |
no test coverage detected