locked
How can I generate separate c# class for includes in a schem using xsd.exe tool? RRS feed

  • Question

  • How can I generate separate c# class for includes in a schem using xsd.exe tool?

      <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" " elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.0">

                <xsd:include schemaLocation=".xsd"/>

                <xsd:include schemaLocation=".xsd"/>

                <xsd:include schemaLocation=".xsd"/>

                <xsd:element name="Test ">

                            <xsd:annotation>

    Wednesday, March 17, 2010 2:31 PM

Answers

All replies

  • Is this what you looking for:

    Using import or include with xsd.exe:  http://www.mgbrown.com/PermaLink38.aspx

    ?
    C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off (c) — Bjarne Stroustrup [http://www2.research.att.com/~bs/bs_faq.html#really-say-that]
    • Proposed as answer by Jasper22 Wednesday, March 17, 2010 2:50 PM
    Wednesday, March 17, 2010 2:50 PM
  • No, I am looking for seperate c# class for the included schemas using xsd.exe

    For example, schema1.xsd includes baseschema1.xsd baseschema2.xsd

    When using command line xsd.exe schema1.xsd baseschema1.xsd baseschema2.xsd  I want the xsd.exe tool to generate a seperate file for baseschema1.xsd  and baseschema2.xsd

    Wednesday, March 17, 2010 6:49 PM
  • Why can't you just use separate commands on separate lines?

    XML Schema Definition Tool (xsd.exe)

    Sample Code Generator 1.4.2.1   (not sure if this one works with VS 2008, it should)

     


    Mark the best replies as answers. "Fooling computers since 1971."
    • Proposed as answer by Ji.Zhou Wednesday, March 24, 2010 10:01 AM
    • Marked as answer by Ji.Zhou Thursday, March 25, 2010 3:54 AM
    Monday, March 22, 2010 1:42 PM