views:

31

answers:

3

I want to develope the valid xhtml doc the input doc is not well formatted i managed to correct some errors but stuck up in condition like

<span>......<p></span>...</p>

there can be any tags in place of span and p......but condition is as mentioned i want to handle this condition i m new in .net c# plz do the needful.... thanx.

A: 

Use the w3c validator and fix problems as you find them. Automated tools would be of limited help since if the markup is malformed they can't really determine what you meant.

marcind
I think there might be the tools that fix this problem, if any body knows plz replay...
Smack
A: 

You can try with HTML agility pack. It is a somewhat tolerant parser but I am quite sure that it will not produce good-looking output for all situations.

Bernd
i dont want to use html agility pack cos it fails in some situation
Smack
+2  A: 

xhtml converter

It's nice tool for validating and correcting xhtml...

Smack