Jump to content

svibuk

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About svibuk

  • Rank
    Newbie
  1. i have a grid with with say 20 columnswhen executed the grid gets converted to tablei need a div to be displayed in the column when the column header cell of that particular is clicked
  2. i am creating a xml dcoument from code in vb6.0 & validating it against xsd using msxml4.0everything working finethe xml file is formed from the code / the data i get during runitmewhen i validate it it gives me the validation results but it seems that the entire xml doument is in one line though the xml document tags appears in diferent linesas when i validate it for multiple error it gives me everytime line 1 but change in column noi made the same file wth same data manually & validated it in that i get the proper line no & column nosuppose the error is in line 10 i get line no 10 column no 5but the file that is generated dynamically gives me error but taking the whole document as line 1how do i redcity it so that i get the proper line no
  3. svibuk

    'Sys' is Undefined

    i am getting the below error when i execute the application & click on a button<script type="text/javascript">//<![CDATA[sys.Application.initialize();//]]></script></form>i am using VS2005 with ajax & frame work 2.0 on windows 7 os with IE8 & IIS7i tried many ways , but culd not eeven debug he errori have script resource .asd filein my app directry
  4. reference http://forums.devx.com/archive/index.php/t-97477.htmlin vb 6.0 i am using msxml4 for validating against the xsdthis is the code i haveDim xmlschema As MSXML2.XMLSchemaCache40 Dim objXML As MSXML2.DOMDocument40 Dim xmldom As MSXML2.DOMDocument40'Dim xmlschema As MSXML2.XMLSchemaCache30Set xmlschema = New MSXML2.XMLSchemaCache40xmlschema.Add "abc", "c:\xml\schema.xsd"'Create an XML DOMDocument object.Set xmldom = New MSXML2.DOMDocument40'Assign the schema cache to the DOM document.'schemas collection.Set xmldom.schemas = xmlschema'Load books.xml as the DOM document.xmldom.async = Falsexmldom.Load "c:\xml\12.xml"'Return validation results in message to the user.If xmldom.parseError.errorCode <> 0 ThenMsgBox xmldom.parseError.errorCode & " " & _xmldom.parseError.reasonElseMsgBox "No Error"End IfExit SubErrHandler:MsgBox (Err.Description)xmlschema.Add "abc", "c:\xml\schema.xsd" in this line i just added abc, is anything frmxsd file to be referenced over therewhen i run it i am getting error ---------------------------Project1----------------------------2146697210 The system cannot locate the object specified.---------------------------OK ---------------------------how to resolve it & if the sml is not matching te xsd it shld throw a proper error msg with the reason
  5. i am using vs 2005 and creating xml file from sqlusing dataset & datadapter & xmlwriterqueries1) the xml file created needs to be fromated .i mean i need to change the elements , nodes positioning as per the given structure how do i do it?
  6. http://www.java2s.com/Tutorial/ASP.NET/050...XMLSchemaVB.htmwith reference to above link i am able to sucessfully validate the given xml against the xsd in dot netis it the right way??how do i do the same process using VB 6.0
  7. i am referring http://msdn.microsoft.com/en-us/library/zc...5(v=VS.80).aspxas per the thread u have postedsome basix queriesi have taken a aspx page and a command button (VALIDATE)i tried to use the code frm above linkhow do i make the code workable on the aspx page on the button clickaatched is the code==============================Imports SystemImports System.XmlImports System.Xml.SchemaImports System.IOImports Microsoft'Microsoft.Samples.XmlPartial Public Class _Default Inherits System.Web.UI.Page Protected Sub cmdvalidate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdvalidate.Click End SubEnd ClassNotInheritable Class XmlDocumentSample Dim instance As New XmlDocument Private Sub New() End Sub Shared reader As XmlReader Shared filename As String = "bookdtd.xml" Public Shared Sub Main() Dim eventHandler As New ValidationEventHandler(AddressOf XmlDocumentSample.ValidationCallback) Try ' Create the validating reader and specify DTD validation. Dim settings As New XmlReaderSettings() settings.ProhibitDtd = False settings.ValidationType = ValidationType.DTD AddHandler settings.ValidationEventHandler, eventHandler reader = XmlReader.Create(filename, settings) ' Pass the validating reader to the XML document. ' Validation fails due to an undefined attribute, but the ' data is still loaded into the document. Dim doc As New XmlDocument() doc.Load(reader) Console.WriteLine(doc.OuterXml) Finally If Not (reader Is Nothing) Then reader.Close() End If End Try End Sub ' Display the validation error. Private Shared Sub ValidationCallback(ByVal sender As Object, ByVal args As ValidationEventArgs) MsgBox("Validation error loading: {0}", filename) MsgBox(args.Message) End SubEnd Class
  8. Hii am new to XML & XSD so if u culd explian me from the start as to how to go abt it with the existing test.xml & test.xsd file that i havei have just got a aspx page with a command buttonu r step by step guidance will make it easy for me to undertsnad & startas currently i dont need to create any xml or xsd i just need to do the validation on button click with the given filescurrently i am referring http://vbcity.com/forums/p/129777/553868.aspx which has a good examplebut the only prblm is i not able to select any other xml documenti need to allow the users to select the xml docuument & the associated xsd shd automically be taken is there any such example
  9. Thnaks for u r postoive reply as since many days i am trying for it but no idea where to start upi am using vb.net for creating XML file from SQL databaselet me knw in vb.net how do i do it i am give a XML file which conatins data & an xsd fileon a button click i need to do the validation
  10. i have a xml file & a given xsdXML file will be created from any source of dataafter the file creation i need to just validate/ check the data against the given xsd ie if a field is defined a numeric and if any charcter is entered in it than it shld display the invalid data error msgif a field needs to contain a date field & if the data is invalid as checked against the xsd it shld display the message accordinglyis this way of validation for XML possible against a given XSD??or how do i solve this issue
  11. http://msdn.microsoft.com/en-us/library/ms171806.aspxwith reference to the above link i am able to take data from xml to sqlhow do i d othe reverseie put data from SQL to XML
  12. bulk transfer/copy data from SQL dB to XML using XSD validation ., when the data is written frm SQL to XML i need it to get validated using a given XSD file currently i am just able to write frm SQL to XML with no validation but i need to use the given XSD filei tried one of the methods but its giving me errorC:\>cscript c:\test\ValidateAndBulkload.vbsMicrosoft ® Windows Script Host Version 5.7Copyright © Microsoft Corporation. All rights reserved.c:\test\ValidateAndBulkload.vbs(28, 4) msxml6.dll: The system cannot locate theobject specified. msxml6.dll is avlaible in system32 & also i hve registered it still i get the errormsxml6.dll: The filename, directory name, or volume label syntax is incorrect.msxml6.dll: The filename, directory name, or volume label syntax is incorrect.when i use the validation given in the script'Validate the data file prior to bulkloadDim sOutputsOutput = ValidateFile("c:\test\SampleXMLData.xml", "", "c:\test\SampleSchema.xml")WScript.Echo sOutput'If FileValid Then' Check constraints and initiate transaction (if needed)' objBL.CheckConstraints = True' objBL.Transaction=True'Execute XML bulkload using file.objBL.Execute "c:\test\SampleSchema.xml", "c:\test\SampleXMLData.xml"set objBL=Nothing'End IfFunction ValidateFile(strXmlFile,strUrn,strXsdFile)' Create a schema cache and add SampleSchema.xml to it.Dim xs, fso, sAppPathSet fso = CreateObject("Scripting.FileSystemObject") Set xs = CreateObject("MSXML2.XMLSchemaCache.6.0")sAppPath = fso.GetFolder(".") xs.Add strUrn, sAppPath & "\" & strXsdFile' Create an XML DOMDocument object.Dim Set = CreateObject("MSXML2.DOMDocument.6.0")' Assign the schema cache to the DOM document.' schemas collection.Set .schemas = xs' Load XML document as DOM document..async = False<_<.Load sAppPath & "\" & strXmlFile' Return validation results in message to the user.If .parseError.errorCode <> 0 ThenValidateFile = "Validation failed on " & _strXmlFile & vbCrLf & _"=====================" & vbCrLf & _"Reason: " & .parseError.reason & _vbCrLf & "Source: " & _.parseError.srcText & _vbCrLf & "Line: " & _.parseError.Line & vbCrLfFileValid = FalseElseValidateFile = "Validation succeeded for " & _strXmlFile & vbCrLf & _"======================" & _vbCrLf & "Contents to be bulkloaded" & vbCrLfFileValid = TrueEnd IfEnd Functioni get the above error , morover i need to transfer data from SQL to XML with the tag elements specified in the schema file ie XSD file
×
×
  • Create New...