Search

You searched for the word(s): userid:782337

Matching Posts

  • Re: xsd and namespace

    Hi Kavita, The original XSD includes an element called <CustomElements> Beneath this, I can include any custom elements I need. But they will not be validated by the original XSD. So I need to create another XSD that contains the info for every child element contained within <CustomElements>. But I don't know how to include this custom XSD with the XML file...is it possible? Thanks!
    Posted to XML and XmlDataSource Control (Forum) by cmt9000 on 12/8/2009
  • xsd and namespace

    Just a quick question, If I have an XML file that uses a namespace and validates the elements against an XSD file everything works fine. But what if I need to add 10 custom elements to the XML file. Can I create my own XSD file without a namespace, and use both the original xsd and my custom xsd? Thanks!
    Posted to XML and XmlDataSource Control (Forum) by cmt9000 on 12/7/2009
  • XML schemas

    I have an XML document that already includes a schema like this: <ACModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.engAC.org/ACmodel/v1/ ACmodel.xsd" xmlns="http://ns.engAC.org/ACmodel/v1/"> But I have one section in the bottom of the XML file that needs to use another schema file, is there a way to include both schema files? Thanks!
    Posted to XML and XmlDataSource Control (Forum) by cmt9000 on 12/2/2009
  • Re: XML schemas

    Thanks Martin, that seems simple enough. But how does the XML file know what schema file to use on what elements? Thank you
    Posted to XML and XmlDataSource Control (Forum) by cmt9000 on 12/2/2009
  • Re: XML schemas

    I have it setup like this, but it's not validating in Altova XMLSpy: <?xml version="1.0" encoding="utf-8"?> <machineModel xmlns="http://ns.mc.org/machineModel/v1/" xmlns:vp="http://sim.sunny.edu" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.mc.org/machineModel/v1/ sim_rrdataSchema.xsd http://sim.sunny.edu rrd-xhtml.xsd"> <machines> <props> <name> <location> <group>
    Posted to XML and XmlDataSource Control (Forum) by cmt9000 on 12/2/2009
  • Re: XML schemas

    So my XML should be validating...but I get this error when validating: Schema at location 'C:\Users\me\Desktop\test4\rrd-xhtml.xsd' has target namespace 'http://www.w3.org/1999/xhtml' rather than 'http://ns.mc.org/machineModel/v1/'. The schema file, rrd-xhtml.xsd, is in the same folder as the XML file that I am trying to validate. I'm not sure why the error is displaying since it looks like my XML is correct. Thanks
    Posted to XML and XmlDataSource Control (Forum) by cmt9000 on 12/2/2009
  • If Or statement in my form

    Hi, I have an asp.net web form that uploads files. Part of the code seems messy to me, but I can't figure out another way to write it. Here it is: myFileExt = System.IO.Path.GetExtension(postedFileName).ToLower fileType = Me.flImageFromComputer.PostedFile.ContentType.ToLower myUploadedFilename = folderPath & sysID & "\" & mediaID.ToString & myFileExt If myFileExt = ".jpg" Or myFileExt = ".gif" _ Or myFileExt = ".png" Or myFileExt = "
    Posted to Visual Basic .NET (Forum) by cmt9000 on 11/24/2009
  • run function on error?

    Hi...I have a asp.net(VB) web app that, amoung other things, writes a bunch of data to a few SQL Server tables. I've noticed, that if the script stops unexpectedly, errors out, etc, I am left with "garbage" data in my SQL Server tables. Is there a way to get my script to run a "clean up" function if it is stopped before it fully executes? I was envisioning the clean up function calling a SQL Server stored procedure, that when executed, would clean the tables of all the garbage
  • Re: run function on error?

    Hi, thanks for the suggestions...unfortunately, our database does not have rollback transactions enabled and we are unable to change that. However, we do track all database entries with .NET sessionIDs...I was hoping I could write a "clean-up" function that, upon an error, delete garbage data from the tables based on the .NET sessionID. But I can't figure out how to trigger the function when the script is unexpectedly stopped due to an error, or if the user cancels the page, etc...
  • XML creation

    I'm creating an XML file with data from my SQL Server database. I'm using a stored procedure to get the data, but I'm worried about speed and I am thinking maybe this is not the most efficient way to read the data(via SqlDataReader). Here is my code, does this look good or is there a better way? Thanks! Using Writer As XmlWriter = XmlWriter.Create(filename, settings) Dim myDB As New Utilities.myDBtilities 'database connection utilities Dim cmdText As String Dim cmd As SqlCommand Dim
    Posted to XML and XmlDataSource Control (Forum) by cmt9000 on 11/2/2009
Page 1 of 21 (202 items) 1 2 3 4 5 Next > ... Last »