问题
I'd like to validate that users of my WPF application are putting proper XHTML into its TextBox control.
I found that there's an API for the W3C Markup Validator.
It's web page says:
Building of libraries used to interact with the validator's API is encouraged. …
and it lists known Perl, PHP/PEAR and ColdFusion libraries.
Does anyone know of a .NET library for the W3C Markup Validator API? Does one already exist?
回答1:
This API is SOAP based. If you want to use it in a .net application you can just add the web reference and code against it. Seems simple enough as it's basically a one-method API...
回答2:
Yes, I just wrote one: .NET Wrapper for W3C Validator API
来源:https://stackoverflow.com/questions/583409/does-a-net-library-for-the-w3c-markup-validator-api-exist