By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,265 Members | 1,731 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,265 IT Pros & Developers. It's quick & easy.

How to Validate XML texts(reading Lines) against a XSD directly from a RichTextBox?

P: 19
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
Nov 11 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.