Thanks for the advice guys. I bit the bullet in the end and bought the R.A.D
Editoe component whch allows users to create Xhtml. It's a very impressive
"Christoph Schittko [MVP]" <INVALIDEMAIL@austin.rr.com> wrote in message
news:#34S$zs7EHA.2600@TK2MSFTNGP09.phx.gbl...
> If the HTML that's imput is simple enough then you can write code to
> walk the HTML DOM with Chris Lovett's SgmlReader [0]. That class will
> also perform HTML to XHTML conversion [1].
>
> HTH,
> Christoph Schittko
> MVP XML
>
http://weblogs.asp.net/cschittko >
>
> [0]
>
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=B > 90FDDCE-E60D-43F8-A5C4-C3BD760564BC
> [1]
http://eggheadcafe.com/articles/20030317.asp >
> > -----Original Message-----
> > From: Peter Hardy [mailto:pete@nospam.com]
> > Posted At: Thursday, December 30, 2004 12:28 PM
> > Posted To: microsoft.public.dotnet.xml
> > Conversation: ensuring html is valid before storing it
> > Subject: ensuring html is valid before storing it
> >
> > Hi guys,
> >
> > Sorry for the cross-post but I got no response in the asp.net
> newsgroup.
> >
> > I am trying to develop a mini e-learning application where the user
> > provides
> > content for each page. Eventually, I'd like to shift to using
> templates
> > but
> > at the moment the users is just entering content using html. Whats the
> > best
> > way to allow the user to do this and whats the best way of ensuring
> the
> > html
> > is valid before I store it in my database / xml document?
> >
> > Cheers,
> >
> > Peter Hardy
>
>