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. XML validation

XML validation

Scheduled Pinned Locked Moved XML / XSL
xmlquestiondatabasecom
3 Posts 2 Posters 12 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.
  • H Offline
    H Offline
    Hans Ruck
    wrote on last edited by
    #1

    How can i make IE 6.0 to validate an xml based on a Schema? Is it possible? It seems to ignore the xsd file. :confused: rechi

    E 1 Reply Last reply
    0
    • H Hans Ruck

      How can i make IE 6.0 to validate an xml based on a Schema? Is it possible? It seems to ignore the xsd file. :confused: rechi

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

      If I recall correctly, IE does not try to validate XML documents. You need to write a bit of code that sets the DOM's validateOnParse property to true and then loads the XML document into the DOM. Here's a JavaScript sample from the MSXML 4.0 SDK: var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.4.0"); xmlDoc.async = false; xmlDoc.validateOnParse = true; xmlDoc.load("books.xml"); Erik Westermann Author, Learn XML In A Weekend (October 2002)

      H 1 Reply Last reply
      0
      • E Erik Westermann

        If I recall correctly, IE does not try to validate XML documents. You need to write a bit of code that sets the DOM's validateOnParse property to true and then loads the XML document into the DOM. Here's a JavaScript sample from the MSXML 4.0 SDK: var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.4.0"); xmlDoc.async = false; xmlDoc.validateOnParse = true; xmlDoc.load("books.xml"); Erik Westermann Author, Learn XML In A Weekend (October 2002)

        H Offline
        H Offline
        Hans Ruck
        wrote on last edited by
        #3

        You're right, IE doesn't validate the xmls. But you're code is missing the XMLSchemaCache part... Anyway, you still deserve a :beer: ! rechi

        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