Results 1 to 7 of 7

Thread: [RESOLVED] XSD file and VB.Net

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Resolved [RESOLVED] XSD file and VB.Net

    Is it possible to create an XSD file within VB.Net? If so, how do I do this? Today is my first day delving into the world of XML/XSD.

    Thanks,
    Blake

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,173

    Re: XSD file and VB.Net

    Do you want to do this programmatically or do you want to do this using Visual Studio, which has a tool to generate the XSD for you?

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: XSD file and VB.Net

    I'd like to know how to do both?
    Blake

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,173

    Re: XSD file and VB.Net

    Visual Studio has, when you view an XML file, a button in the XML editor called "Create Schema". This should actually be called "Infer Schema" because the tool then looks at the XML and creates a tightly constrained schema based upon the XML and values present in it.

    To do this programmatically, you'd invoke the xsd.exe utility using System.Diagnostics.Process.Start(). This is the XML Schema Definition tool and you will need to write the XML to disk and pass the XML to the tool so that it can create the XSD for you. Again, same mechanism. Tightly constrained, limited.

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: XSD file and VB.Net

    mendhak,

    How do I access within VS? I opened an "XML" file in VS but did not see any button related to XML.
    Blake

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,173

    Re: XSD file and VB.Net

    Right click on the toolbars at the top and look for "XML Editor"

  7. #7

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: XSD file and VB.Net

    Thanks, I found it!
    Blake

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width