{"library":"express-xml-bodyparser","type":"library","category":null,"description":"express-xml-bodyparser is a Connect/Express middleware designed to parse incoming raw XML request bodies, converting them into a JavaScript object available on `req.body`. It leverages the `xml2js` library for XML parsing. The current stable version is 0.4.1. The package has a slow release cadence, with updates typically addressing dependencies or minor fixes, rather than frequent feature additions. Key differentiators include its ability to parse data only once even if called multiple times, gracefully skip parsing for empty bodies, and accept a wide range of XML-based content-types (e.g., `application/rss+xml`). It provides custom configuration options that are merged with opinionated defaults to normalize the resulting JSON structure, such as trimming whitespace and lowercasing tag names, which users need to be aware of if they desire standard `xml2js` behavior. TypeScript type definitions are available via `@types/express-xml-bodyparser`.","language":"javascript","status":"maintenance","version":"0.4.1","tags":["javascript","xml","json","middleware","parser","express"],"last_verified":"Wed May 27","install":[{"cmd":"npm install express-xml-bodyparser","imports":["import xmlparser from 'express-xml-bodyparser';","const xmlparser = require('express-xml-bodyparser');","import type { Request, Response, NextFunction } from 'express';\nimport type { Options as Xml2JsOptions } from 'xml2js';"]},{"cmd":"yarn add express-xml-bodyparser","imports":[]},{"cmd":"pnpm add express-xml-bodyparser","imports":[]}],"homepage":null,"github":"https://github.com/macedigital/express-xml-bodyparser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/express-xml-bodyparser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/express-xml-bodyparser/compatibility"}}