I have a xml file with header and footer like:
set "header=<?xml version="1.0" encoding="UTF-8"?><Config xmlns="http://namespace.com/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0">"
set "footer=</Config>"
I want to remove them from the xml file then read in the remaining items in between the header and footer tags.
I've tried to use sed. this works on Linux but don't do anything on Windows
sed -e "s@%header%@@g" -i.backup xmlFile.xml any suggestions?
headerandxmlHeader.