I have a file called pictures.xml and it contains some pictures information like:
<ResourcePicture Name="a.jpg">
<GeneratedPicture Name="b.jpg"/>
<GeneratedPicture Name="c.jpg"/>
</ResourcePicture>
<ResourcePicture Name="z1.jpg">
<GeneratedPicture Name="z2.jpg"/>
<GeneratedPicture Name="z3.jpg"/>
<GeneratedPicture Name="z4.jpg"/>
</ResourcePicture>
What I want do do is to get each line in for loop and print the names of the pictures. Sample output like:
- a.jpg - b.jpg c.jpg
- z1.jpg - z2.jpg z3.jpg z4.jpg
I can get each line but can't get the name attributes
for /f "Delims=/" %%a in (pictures.xml) do (
echo %%a
)