Skip to content

Integrate .xml method to express directly. #161

@greg-md

Description

@greg-md

With latest versions of express, body-parser is integrated in the express itself and provides the same middleware (Docs: https://expressjs.com/en/api.html#express.json). It would be good to use Express middleware directly for xml as well, instead of body-parser.

Example:

const express = require('express');
require('body-parser-xml')(express);

const app = express();
app.use(express.xml());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions