Hello Everyone,
I am validating my XML file with some DTD using some C# logic. I have to provide error details to my client in the same XML file which I am validating against DTD without using Schematron.
Is there any solution to achieve that in C#?
Example: Before validating my XML file:
< A>
<B></B>
<D></D>
< /A>
After validating my XML file:
< A>
<B></B>
< !-- Error/Warning: Incorrect sequence. C Element is missing [Something like that] -->
<D></D>
< /A>
Means, program should automatically adds the errors/warnings (from the DTD validation) to the lines where the errors are.
Any Ideas?
Thanks,
Shahab Abbasi