Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Not Able to validate the MSXML

Not Able to validate the MSXML

Scheduled Pinned Locked Moved XML / XSL
helpcomxmlannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kuldeep Bhatnagar
    wrote on last edited by
    #1

    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

    E 1 Reply Last reply
    0
    • K Kuldeep Bhatnagar

      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

      E Offline
      E Offline
      Erik Westermann
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups