diff --git a/src/utils/fs.ts b/src/utils/fs.ts index 00b0222..5f3730e 100644 --- a/src/utils/fs.ts +++ b/src/utils/fs.ts @@ -7,7 +7,7 @@ export async function* parseXmls(stream: ReturnType) { for await (const file of stream) { const fileName = typeof file === 'string' ? file : file.fullpath(); const xmlString = await fs.promises.readFile(fileName, 'utf-8'); - const xml = new XMLParser({ ignoreAttributes: false, allowBooleanAttributes: true }).parse(xmlString); + const xml = new XMLParser({ ignoreAttributes: false, allowBooleanAttributes: true, trimValues: false }).parse(xmlString); yield { fileName, xml }; } }