Can i Use a RichtextBox to feed an xml parser

Visual Studio30
I have a RichTextBox where the user will type in xml style code and

can load and save their previous work.

I want to parse what the user types into the richtextbox.



How do i go about this?

Is a StreamWriter a good idea or even feasable for this?



Any suggestions will be helpful thanks.



I know the richtext box is probably not the best idea, but the rest of

the program dictates that this is what i must use.



OR



I have the option of saving the file before parsing it and then

opening it separatley, parsing it and saving it again then forcing a

refresh in the richtextbox.

Is this method better?



Thanks guys.



Ryan McConnell


-