Reputation: 946
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.
Upvotes: 1
Views: 119
Reputation: 779
Try HTML Tidy. Input the code in the html field. Make sure "Output XHTML" is checked. And then click on the green Tidy link with an arrow. It will give you warnings and errors that you can then correct.
Upvotes: 0
Reputation: 539
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.
Upvotes: 0
Reputation: 53183
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.
Upvotes: 0