(str)
| 17763 | } else throw new Error("No XML parser found") |
| 17764 | } |
| 17765 | static fromXml(str) { |
| 17766 | this._initializeXmlParser() |
| 17767 | const xml = this._xmlParser(str) |
| 17768 | try { |
| 17769 | return this._particleFromXml(xml).getParticle("subparticles") |
| 17770 | } catch (err) { |
| 17771 | return this._particleFromXml(this._parseXml2(str)).getParticle("subparticles") |
| 17772 | } |
| 17773 | } |
| 17774 | static _zipObject(keys, values) { |
| 17775 | const obj = {} |
| 17776 | keys.forEach((key, index) => (obj[key] = values[index])) |
nothing calls this directly
no test coverage detected