In our project, we wants to generate the excel report from xml which has all differences of two folders.
I tried to get the full path of a file from xml nodes, but i am confusing with node names because all parent nodes(foldercomp) have same name.
And can create xsd for this xml format , inner classes with same class names are not accepting in xsd complex types.
Can you please help me on this
Below is the bcompare xml report:
<?xml version="1.0" encoding="utf-8"?>
<bcreport created="16-11-2017 20:20:54">
<foldercomp>
<ltpath>E:\compare\CODE1</ltpath>
<rtpath>E:\compare\CODE2</rtpath>
<mode>Differences</mode>
<foldercomp>
<lt>
<name>Dir1</name>
<size>696</size>
</lt>
<rt>
<name>Dir1</name>
<size>846</size>
</rt>
<foldercomp>
<lt>
<name>Dir3</name>
<size>424</size>
</lt>
<rt>
<name>Dir3</name>
<size>431</size>
</rt>
<foldercomp>
<lt>
<name>Dir4</name>
<size>281</size>
</lt>
<rt>
<name>Dir4</name> <!-- E:\compare\CODE2\Dir1\Dir3\Dir4 -->
<size>288</size>
</rt>
<filecomp status="rtnewer">
<lt>
<name>File5 (2).txt</name> <!-- E:\compare\CODE1\Dir1\Dir3\Dir4\File5 (2).txt -->
<size>139</size>
</lt>
<rt>
<name>File5 (2).txt</name> <!-- E:\compare\CODE2\Dir1\Dir3\Dir4\File5 (2).txt -->
<size>146</size>
</rt>
</filecomp>
</foldercomp>
</foldercomp>
<filecomp status="rtonly">
<rt>
<name>File1 (1).txt</name> <!-- E:\compare\CODE2\File1 (1).txt -->
<size>143</size>
</rt>
</filecomp>
</foldercomp>
<foldercomp>
<lt>
<name>Dir2</name>
<size>286</size>
</lt>
<rt>
<name>Dir2</name>
<size>296</size>
</rt>
<filecomp status="rtnewer">
<lt>
<name>File2.txt</name> <!-- E:\compare\CODE1\Dir2\File2.txt -->
<size>143</size>
</lt>
<rt>
<name>File2.txt</name> <!-- E:\compare\CODE2\Dir2\File2.txt -->
<size>153</size>
</rt>
</filecomp>
</foldercomp>
<filecomp status="rtnewer">
<lt>
<name>File1 (2).txt</name> <!-- E:\compare\CODE1\File1 (2).txt -->
<size>132</size>
</lt>
<rt>
<name>File1 (2).txt</name> <!-- -E:\compare\CODE1\File1 (2).txt -->
<size>139</size>
</rt>
</filecomp>
<filecomp status="rtnewer">
<lt>
<name>File1 (3).txt</name> <!-- E:\compare\CODE1\File1 (3).txt -->
<size>144</size>
</lt>
<rt>
<name>File1 (3).txt</name> <!-- E:\compare\CODE2\File1 (3).txt -->
<size>150</size>
</rt>
</filecomp>
</foldercomp>
lt - CODE1, rt- CODE2, foldercomp and filecomp tags for diff in folder and file