feat(MED-161): move medipost xml validate to separate service

This commit is contained in:
2025-09-17 11:14:33 +03:00
parent eda21b8a99
commit a229ab4d31
4 changed files with 36 additions and 25 deletions

View 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);
}