Hi All,
I am trying to validate XMLs from a folder:
Input Directory having multiple XML files:
File1.xml
<Root>
<Parent>
<Child Name="One">
<Foo>...</Foo>
<Bar>...</Bar>
<Baz>...</Baz>
</Child>
<Child Name="Two">
<Foo>...</Foo>
<Bar>...</Bar>
File2.xml
<Root>
<Parent>
<Child Name="One">
<Foo>...</Foo>
<Bar>...</Bar>
<Baz>...</Baz>
</Child>
<Child Name="Two">
<Foo>...
<Bar>...</Bar>
</Child>
</Parent>
</Root>
File3.xml
<Root>
<Parent>
<Child Name="One">
<Foo>...</Foo>
<Bar>...</Bar>
<Baz>...</Baz>
</Child>
<Child Name="Two">
<Foo>...</Foo>
<Bar>...</Bar>
</Child>
</Parent>
</Root>
My output should be:
File1.xml & File2.xml doesn't having proper closed tags these files have to store in Folder1
File3.xml having proper closed tags so these file has to be stored in Folder2
I don't know how to start with.. could you please help in this.
Thanks in advance
Regards,
Ulf