How can I use a batch file to read a very long line of unformatted xml? I'm trying to insert a line break after every ">".
The problem is, that my batch file skips to the next line after it finds a ">".
And because of this behaviour only the first tag of my xml file is displayed (there's only one line, a second line does not exist).
This is the command that I've used:
FOR /F "delims=>" %%i IN (test.xml) DO @echo %%i
This is an example of how my xml file looks:
<simpleType name="parseType"><restriction base="xs:token"><enumeration value="xml"/<enumeration value="text"/></restriction></simpleType>
This is the output of the cmd command:
<simpleType name="parseType"
No comments:
Post a Comment