Hi, I have .doc files under each directory and sundirectories. I have to convert all of them to .xml using batch scripting.
Thanks

That can't be done in batch. You can change the file extension, but I don't think that's what you want. If you are trying to change the format of the .doc to a .xml, Batch is not your language. Even if you were to use a heavier language such as C++, that would be a lot of work.
If by "XML" you mean "DOCX," then you could use the Office file converter. If by "XML" you mean "XML," then you'll have to sit down and think of the data format, and write the appropriate scripts to grab the data from the DOC file and fill out the XML.
