how to generate a sitemap in expressjs
<p>I downloaded my XML sitemap from the sitemap xml generator website. I placed my sitemap.xml on my public directory but when I tried to submit the sitemap.xml into google console i received the following error: <strong>General HTTP error: 404 not found
HTTP Error: 404</strong><br>So i coded<br><code>app.get('/sitemap.xml', function( req, res, next ) {
    res.header('Content-Type', 'text/xml');
    res.render( 'sitemap' );
)};</code><br><br>And when i navigate to the 'website/sitemap.xml' I am getting the following error: <br><br><strong>This page contains the following errors:</strong><br></p>

<p><em>error on line 1 at column 42: Specification mandate value for attribute itemscope</em><br><br>
Thanks for your help</p>