(xml, attributes)
| 12 | xml.push(` ${name}="${utils.xmlEncode(value.toString())}"`); |
| 13 | } |
| 14 | function pushAttributes(xml, attributes) { |
| 15 | if (attributes) { |
| 16 | const tmp = []; |
| 17 | _.each(attributes, (value, name) => { |
| 18 | if (value !== undefined) { |
| 19 | pushAttribute(tmp, name, value); |
| 20 | } |
| 21 | }); |
| 22 | xml.push(tmp.join("")); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | class XmlStream { |
| 27 | constructor() { |
no test coverage detected
searching dependent graphs…