I'm looking f开发者_JS百科or some code in .net to allow me to test an xml file to determine if it is well-formed. I am not validating the file against a schema at this point in my code, just testing that it conforms to xml specification for being well formed.
Any assistance is appreciated.
Just try parsing the XML into an XMLDocument and see if it throws.
精彩评论