Adding new lines in XML file

I have a bunch of XML-files that all start with the XML-declaration

<?xml version="1.0" encoding="UTF-8"?>

After the final “>” it just goes on directly with the start of the following tag – like this: <?xml version="1.0" encoding="UTF-8"?><tag>

I would like to split it there to make a new line followed by another new line. Like this:

<?xml version="1.0" encoding="UTF-8"?>
New line
New line
<tag>

How could this be done?

Many thanks in advance:-)

/Paul


Source: xml

Leave a Reply