feat(MED-161): move medipost xml validate to separate service
This commit is contained in:
8
lib/services/util/xml.service.ts
Normal file
8
lib/services/util/xml.service.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
'use server';
|
||||
|
||||
import { XMLParser } from 'fast-xml-parser';
|
||||
|
||||
export function parseXML(xml: string) {
|
||||
const parser = new XMLParser({ ignoreAttributes: false });
|
||||
return parser.parse(xml);
|
||||
}
|
||||
Reference in New Issue
Block a user