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 to xsd validation in vbscript

xml to xsd validation in vbscript

Scheduled Pinned Locked Moved XML / XSL
tutorialcomsysadminxmlhelp
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.
  • S Offline
    S Offline
    Selvakumar R
    wrote on last edited by
    #1

    Hi Any one know how to validate xsd to xml in vbscript. Is it possible. If it possible, can i check each node while entering the data. for example i have 2 child element like customerid, customername, while entering customerid it check wether entered data is numeric. can i get any exception or parser error if user enter wrong data. Can any one tell how i can transfer server side xml data to client side. I expect better ideas from members Regards Maxi :rose: maximasshel@hotmail.com Maximasshel

    S 1 Reply Last reply
    0
    • S Selvakumar R

      Hi Any one know how to validate xsd to xml in vbscript. Is it possible. If it possible, can i check each node while entering the data. for example i have 2 child element like customerid, customername, while entering customerid it check wether entered data is numeric. can i get any exception or parser error if user enter wrong data. Can any one tell how i can transfer server side xml data to client side. I expect better ideas from members Regards Maxi :rose: maximasshel@hotmail.com Maximasshel

      S Offline
      S Offline
      Sushant_Mathur
      wrote on last edited by
      #2

      hope u have done with this problem yet but for ur help u can chk this Vb code below: Set schemaCache = New MSXML2.XMLSchemaCache40 Dim doc As MSXML2.DOMDocument40 Dim xsd Set doc = New MSXML2.DOMDocument40 xsd = RTReg.getValue("xsd_path") schemaCache.Add "", xsdpath 'Check the file with xsd Set doc.schemas = schemaCache 'add schema with the file doc.async = False If Not doc.Load(sOutputFile) Then 'XML file not parsed Else 'successfully parsed End If Sushant Mathur Bangalore, INDIA. http://n.domaindlx.com/fun2ssh/HOME.htm

      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