igir
Version:
🕹 A zero-setup ROM collection manager that sorts, filters, extracts or archives, patches, and reports on collections of any size on any OS.
16 lines (15 loc) • 388 B
JavaScript
import { XMLParser } from 'fast-xml-parser';
/**
* Class to hold some static parsing methods.
*/
export default {
/**
* Parse the contents of an XML file to a {@link DATObjectProps} object.
*/
fromXmlString(xmlContents) {
return new XMLParser({
ignoreAttributes: false,
attributeNamePrefix: '',
}).parse(xmlContents);
},
};