Hi,
I have created my own XML text editor and using XmlReader to read the xml files
I have opened one xml file for editing in the text box editor( i have . Now before saving the file, i want to validate each lines in the Text box against the standard xsd file for suppose it should not save any invalid entries in the xml file.
Is there any way to validate the XML texts directly from the RichTextBox?
If this is not possile atleast i want to retrieve the invalid entries(texts in some string) after validating the XML file with the normal XmlReader and XmlReaderSettings ( reader = XmlReader.Create(reader, readerSettings .....I am usually validating the xml files using XMLReaderSettings class) and then delete the invalid texts from TestBox editor.
I am using C# .NET
Please help!!
Thanks