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