Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

Is there any way to enter errors/Warnings in the XML file which I am validating against DTD?

$
0
0

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


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>