Not Able to validate the MSXML
-
Hi, While calling the validate method I am getting the following error while validating the XML: "Validate failed because the document does not contain exactly one root node." The XMLDOM object i am creating is Msxml2.DOMDocument.4.0 I am having only one root but don't know why this error Here is my XSD: And here is the XML : http://www.yahoo.com http://www.yahoo.com 12345678 abcd Version No 1.1 Made By Microsoft Anyone Please let me know what can be problem with this. Kuldeep
-
Hi, While calling the validate method I am getting the following error while validating the XML: "Validate failed because the document does not contain exactly one root node." The XMLDOM object i am creating is Msxml2.DOMDocument.4.0 I am having only one root but don't know why this error Here is my XSD: And here is the XML : http://www.yahoo.com http://www.yahoo.com 12345678 abcd Version No 1.1 Made By Microsoft Anyone Please let me know what can be problem with this. Kuldeep
The schema location attribute in the root node is wrong, since you don't have a namespace in your instance. Here is an instance that works: Also make sure that your schema actually exists at the specified location and is valid. Here's some more information: http://msdn.microsoft.com/en-us/library/ms256139(VS.85).aspx Erik Westermann - wWorkflow.net - BizTalk Consulting Services SOA * ESB * BPI * SaaS ... forget the alphabet soup - get the main course with our consulting services! wWorkflow.net or +1 416-809-1453