For IT pros who trust no third-party tools, Windows PowerShell can parse XML natively. Here is a one-liner that generates a BAT script:
foreach (XmlNode step in steps)
Some XML files have redundant <step> tags. Fix: No harm; duplicate commands are ignored by fastboot. motorola firmware xml to bat converter tool for windows