So, I want to include in one of my batch file projects a way to create an XML file. I already have a way of parseing XML files to get the data out of them, so that is of no matter. Anyways.
Let's say I have 3 variables. One called package, another package-ver and lastly one called package-url.
I want them to be created into an XML file like this
<?xml version="1.0"?> <package-info> <package data="%package%"> <package-ver data="%package-ver%"> <package-url data="%package-url%"> </package-info>
I would then preceed to have this be pipped into a text file. But, I don't want to have to tell it to do this every single time, how can I have it so I can give, let's say a function or program input and it'll create all of this for me.
How would I do this?
-- EDIT -- Added other two variables, sorry.