Home:ALL Converter>Adding header part and closing tags to XHTML content

Adding header part and closing tags to XHTML content

Ask Time:2021-09-22T05:55:39         Author:minto

Json Formatter

I have a multiple XHTML pages without header part and closing HTML tags (file002.xhtml, file015.xhtml,etc). How I can add the header part and closing tags to all these pages, use some scripting, or macro? (Linux Debian). I need to add these parts before and after content:

<?xml version="1.0" encoding="UTF-8"?>
<html xml:lang="en-us" lang="en-us" xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xmlns:ns="http://www.w3.org/2001/10/synthesis">
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="1260143570.css"/>
</head>
<body>

= CONTENT =

</body>
</html>

Author:minto,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/69275955/adding-header-part-and-closing-tags-to-xhtml-content
yy