<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>Xsd2Code Forum Rss Feed</title><link>http://www.codeplex.com/Xsd2Code/Thread/List.aspx</link><description>Xsd2Code Forum Rss Description</description><item><title>New Post: GeneratePropertyNameSpecified in commandline?</title><link>http://xsd2code.codeplex.com/discussions/443918</link><description>&lt;div style="line-height: normal;"&gt;Is there any way to use GeneratePropertyNameSpecified in command line parameters? I Can't find this.&lt;br /&gt;
&lt;/div&gt;</description><author>dominikjeske</author><pubDate>Thu, 16 May 2013 14:16:27 GMT</pubDate><guid isPermaLink="false">New Post: GeneratePropertyNameSpecified in commandline? 20130516021627P</guid></item><item><title>New Post: Installation Location!</title><link>http://xsd2code.codeplex.com/discussions/443721</link><description>&lt;div style="line-height: normal;"&gt;I installed this on my windows 7 32 bit machine and it got installed to the c:\ root folder.&lt;br /&gt;
&lt;br /&gt;
Is that how this is supposed to install? Can I uninstall and then install to a specific folder?&lt;br /&gt;
&lt;/div&gt;</description><author>abhijit74</author><pubDate>Wed, 15 May 2013 12:05:50 GMT</pubDate><guid isPermaLink="false">New Post: Installation Location! 20130515120550P</guid></item><item><title>New Post: Visual Studio 2012 add-in support</title><link>http://xsd2code.codeplex.com/discussions/432815</link><description>&lt;div style="line-height: normal;"&gt;I'm using modified 3.4  version of xsd2code( for my needs).&lt;br /&gt;
I can share with everybody following things: &lt;br /&gt;
&lt;pre&gt;&lt;code&gt;- VS 2012 Install Shield Limited Edition Project - empty install project only/ Installer with my Version of xsd2code/  Or  full solution sources  wich i was tested and updated for myself, when i use this  tool with silverlight. The only agreement in limited edition is that we will need to register in GAC Xsd2Code.Library.dll.  


&lt;/code&gt;&lt;/pre&gt;

There is the problem with direct installer conversion to VS 2012 -  Custom tool doesn't work. But i found decision,  if it's interesting for somebody more detailed it described here &lt;br /&gt;
 &lt;a href="http://mnaoumov.wordpress.com/2012/09/26/developing-custom-tool-aka-single-file-generators-for-visual-studio-2012/" rel="nofollow"&gt;http://mnaoumov.wordpress.com/2012/09/26/developing-custom-tool-aka-single-file-generators-for-visual-studio-2012/&lt;/a&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>xidius</author><pubDate>Tue, 07 May 2013 11:48:53 GMT</pubDate><guid isPermaLink="false">New Post: Visual Studio 2012 add-in support 20130507114853A</guid></item><item><title>New Post: Is possible to use the import tag instead of include tag in an xsd file and compile it with sxd2code?</title><link>http://xsd2code.codeplex.com/discussions/442308</link><description>&lt;div style="line-height: normal;"&gt;I need to create an object model composed by separated files with different namespace, and include some third-part xsd.&lt;br /&gt;
&lt;br /&gt;
When i try to use the import in an xsd and execute xsd2code, i receive an error like the one specified in the  &lt;a href="https://xsd2code.codeplex.com/workitem/16174" rel="nofollow"&gt;issue - ExcludeIncludedTypes generate error if xsd use import tag&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Anyone can help?&lt;br /&gt;
&lt;/div&gt;</description><author>RedBass</author><pubDate>Thu, 02 May 2013 07:50:53 GMT</pubDate><guid isPermaLink="false">New Post: Is possible to use the import tag instead of include tag in an xsd file and compile it with sxd2code? 20130502075053A</guid></item><item><title>New Post: Attributes and nullable types</title><link>http://xsd2code.codeplex.com/discussions/67567</link><description>&lt;div style="line-height: normal;"&gt;I wouldn't normally necro a thread, but I've just started using this library, and encountered this same problem.&lt;br /&gt;
&lt;br /&gt;
An attribute is optional (nullable) by default, unless use=&amp;quot;required&amp;quot; is specified in the schema:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.w3schools.com/schema/el_attribute.asp" rel="nofollow"&gt;http://www.w3schools.com/schema/el_attribute.asp&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
So surely attributes should generate nullable types by default?&lt;br /&gt;
&lt;/div&gt;</description><author>pricerc</author><pubDate>Sun, 28 Apr 2013 23:04:35 GMT</pubDate><guid isPermaLink="false">New Post: Attributes and nullable types 20130428110435P</guid></item><item><title>New Post: XSD2Code problem with namespace</title><link>http://xsd2code.codeplex.com/discussions/441241</link><description>&lt;div style="line-height: normal;"&gt;I am using XSD2Code to generate C# class from XSD file.&lt;br /&gt;
&lt;br /&gt;
I got stuck with the following problem.&lt;br /&gt;
&lt;br /&gt;
XML file looks something like&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot; standalone=&amp;quot;yes&amp;quot;?&amp;gt;
&amp;lt;Notification xmlns=&amp;quot;http://message.domain.com&amp;quot;&amp;gt;
  &amp;lt;Object xmlns=&amp;quot;http://type.domain.com&amp;quot; ID=&amp;quot;97440&amp;quot; /&amp;gt;
&amp;lt;/Notification&amp;gt;&lt;/code&gt;&lt;/pre&gt;

XML gets succefsully deserialized when xmls for Object is empty. But when there is a value like in the sample above, I get an error &amp;quot;Object reference not set to an instance of an object&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
What could cause this error?&lt;br /&gt;
&lt;/div&gt;</description><author>mkost</author><pubDate>Tue, 23 Apr 2013 06:40:52 GMT</pubDate><guid isPermaLink="false">New Post: XSD2Code problem with namespace 20130423064052A</guid></item><item><title>New Post: Array of Objects vs Object with Array</title><link>http://xsd2code.codeplex.com/discussions/440880</link><description>&lt;div style="line-height: normal;"&gt;Hello,&lt;br /&gt;
&lt;br /&gt;
I generate Csharp code from an XSD file.&lt;br /&gt;
The xsd contains an ComplexType &amp;quot;WorkspaceDefinition&amp;quot;, that has, amongst others, an element &amp;quot;Domains&amp;quot; from type &amp;quot;ArrayOfDomain&amp;quot;. This type is also defined in the XSD. It contains a sequence from type &amp;quot;Domain&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
My problem:&lt;br /&gt;
In the resulting Csharp code the Class &amp;quot;WorkspaceDefinition&amp;quot; contains a Parameter from type &amp;quot;List&amp;lt;Domain&amp;gt;&amp;quot;. What I would expext it to have is a Parameter from type &amp;quot;ArrayOfDomain&amp;quot;.&lt;br /&gt;
The class &amp;quot;ArrayOfDomain&amp;quot; is generated in the CSharp file, but never referenced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Is this a Problem in the xsd2code configuration?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The xsd:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;xs:complexType name=&amp;quot;WorkspaceDefinition&amp;quot;&amp;gt;
    ...
      &amp;lt;xs:element name=&amp;quot;Domains&amp;quot; type=&amp;quot;esri:ArrayOfDomain&amp;quot;&amp;gt;
        &amp;lt;xs:annotation&amp;gt;
          &amp;lt;xs:documentation&amp;gt;The list of Domains.&amp;lt;/xs:documentation&amp;gt;
        &amp;lt;/xs:annotation&amp;gt;
      &amp;lt;/xs:element&amp;gt;
   ...
  &amp;lt;/xs:complexType&amp;gt;
&amp;lt;xs:complexType name=&amp;quot;ArrayOfDomain&amp;quot;&amp;gt;
    &amp;lt;xs:annotation&amp;gt;
      &amp;lt;xs:documentation&amp;gt;Generic array of objects.&amp;lt;/xs:documentation&amp;gt;
    &amp;lt;/xs:annotation&amp;gt;
    &amp;lt;xs:sequence&amp;gt;
      &amp;lt;xs:element minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;unbounded&amp;quot; name=&amp;quot;Domain&amp;quot; type=&amp;quot;esri:Domain&amp;quot; /&amp;gt;
    &amp;lt;/xs:sequence&amp;gt;
  &amp;lt;/xs:complexType&amp;gt;
&amp;lt;xs:complexType name=&amp;quot;Domain&amp;quot; abstract=&amp;quot;true&amp;quot;&amp;gt;
    &amp;lt;xs:annotation&amp;gt;
      &amp;lt;xs:documentation&amp;gt;
        Domain Properties control and their merge split policies control.
      &amp;lt;/xs:documentation&amp;gt;
    &amp;lt;/xs:annotation&amp;gt;
   ...
  &amp;lt;/xs:complexType&amp;gt;&lt;/code&gt;&lt;/pre&gt;

The resulting Csharp Code:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;public partial class WorkspaceDefinition {
        
        private esriWorkspaceType workspaceTypeField;
        
        private string versionField;
        
        private List&amp;lt;Domain&amp;gt; domainsField;
        
        private List&amp;lt;DataElement&amp;gt; datasetDefinitionsField;
        
        private XmlPropertySet metadataField;
        
        public WorkspaceDefinition() {
            this.metadataField = new XmlPropertySet();
            this.datasetDefinitionsField = new List&amp;lt;DataElement&amp;gt;();
            this.domainsField = new List&amp;lt;Domain&amp;gt;();
        }
        
       ...
        [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]        [System.Xml.Serialization.XmlArrayItemAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
        public List&amp;lt;Domain&amp;gt; Domains {
            get {
                return this.domainsField;
            }
            set {
                this.domainsField = value;
            }
        }
        
        [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        [System.Xml.Serialization.XmlArrayItemAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
        public List&amp;lt;DataElement&amp;gt; DatasetDefinitions {
            get {
                return this.datasetDefinitionsField;
            }
            set {
                this.datasetDefinitionsField = value;
            }
        }
        
        public XmlPropertySet Metadata {
            get {
                return this.metadataField;
            }
            set {
                this.metadataField = value;
            }
        }
    }

public partial class ArrayOfDomain {
        
        private List&amp;lt;Domain&amp;gt; domainField;
        
        public ArrayOfDomain() {
            this.domainField = new List&amp;lt;Domain&amp;gt;();
        }
        
        public List&amp;lt;Domain&amp;gt; Domain {
            get {
                return this.domainField;
            }
            set {
                this.domainField = value;
            }
        }
    }&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>SteLoe</author><pubDate>Fri, 19 Apr 2013 09:52:01 GMT</pubDate><guid isPermaLink="false">New Post: Array of Objects vs Object with Array 20130419095201A</guid></item><item><title>New Post: Run Xsd2Code generation - set default settings?</title><link>http://xsd2code.codeplex.com/discussions/440118</link><description>&lt;div style="line-height: normal;"&gt;Is it possible to change the default settings of this so I don't have to change the settings every time I want to make a new generated file?&lt;br /&gt;
&lt;/div&gt;</description><author>JNizzy</author><pubDate>Fri, 12 Apr 2013 17:46:16 GMT</pubDate><guid isPermaLink="false">New Post: Run Xsd2Code generation - set default settings? 20130412054616P</guid></item><item><title>New Post: Custom Tool - manual installation</title><link>http://xsd2code.codeplex.com/discussions/431646</link><description>&lt;div style="line-height: normal;"&gt;I resolved this issue (see: &lt;a href="https://xsd2code.codeplex.com/discussions/431591" rel="nofollow"&gt;https://xsd2code.codeplex.com/discussions/431591&lt;/a&gt;), so I don't need info about the problem anymore.&lt;br /&gt;
&lt;/div&gt;</description><author>dwozniak</author><pubDate>Thu, 11 Apr 2013 16:55:49 GMT</pubDate><guid isPermaLink="false">New Post: Custom Tool - manual installation 20130411045549P</guid></item><item><title>New Post: Installation error 1001: ConfigurationErrorsException</title><link>http://xsd2code.codeplex.com/discussions/431591</link><description>&lt;div style="line-height: normal;"&gt;I resolved this issue:&lt;br /&gt;
&lt;br /&gt;
The problem was with machine.config in .NET Framework. I've reinstalled all existing .NET Frameworks (2.x and 4.x) and upgraded Visual Studio from 2010 to 2012. Now, Xsd2Code is installed with success.&lt;br /&gt;
&lt;/div&gt;</description><author>dwozniak</author><pubDate>Thu, 11 Apr 2013 16:54:53 GMT</pubDate><guid isPermaLink="false">New Post: Installation error 1001: ConfigurationErrorsException 20130411045453P</guid></item><item><title>New Post: Constructor with parameters</title><link>http://xsd2code.codeplex.com/discussions/439801</link><description>&lt;div style="line-height: normal;"&gt;Hello, all.&lt;br /&gt;
&lt;br /&gt;
I use xsd2xode first time and I have a question.&lt;br /&gt;
Can I get constructor with parameters? &lt;br /&gt;
I got next code:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;public class Class1
{
    private List&amp;lt;string&amp;gt; list1;
    public Class1()
    {
        list1 = new List&amp;lt;string&amp;gt;();
    }
}&lt;/code&gt;&lt;/pre&gt;

How can I get something like this?&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;public class Class1
{
    private List&amp;lt;string&amp;gt; list1;
    public Class1(List&amp;lt;string&amp;gt; list1)
    {
        this.list1 = list1;
    }
}&lt;/code&gt;&lt;/pre&gt;

Thanks a lot.&lt;br /&gt;
&lt;/div&gt;</description><author>medwed_1</author><pubDate>Wed, 10 Apr 2013 15:19:17 GMT</pubDate><guid isPermaLink="false">New Post: Constructor with parameters 20130410031917P</guid></item><item><title>New Post: Visual Studio 2012 add-in support</title><link>http://xsd2code.codeplex.com/discussions/432815</link><description>&lt;div style="line-height: normal;"&gt;Thanks Guys this worked great. Here is how to do it if you are not too familiar with Visual Studio. Go to or search for the Xsd2Code.addin file after you have installed it on a 2008 or 2010 visual studio. Once you have found that file copy it to the location specified in your Tools-&amp;gt;Options-&amp;gt;Add-in Security location or in my case I added a Folder under my Documents-&amp;gt;Visual Studio 2012 folder called Addins and then added that location to the Add-in Security. After added the file or adding the location where the file is, close Visual Studio 2012. Now open xsd2Code.addin file ( I used NotePad++) with any editor you wish and change the 9 or 10 in the node to an 11 like stated above. Now open up Visual Studio 2012 and open a project with an XSD, right click on it and there you go, you should see Run Xsd2Code Gerneration.&lt;br /&gt;
&lt;/div&gt;</description><author>rglide</author><pubDate>Fri, 05 Apr 2013 12:35:30 GMT</pubDate><guid isPermaLink="false">New Post: Visual Studio 2012 add-in support 20130405123530P</guid></item><item><title>New Post: Visual Studio AddIn not showing, a workaround</title><link>http://xsd2code.codeplex.com/discussions/248964</link><description>&lt;div style="line-height: normal;"&gt;My environment Window7 - VS2010 SP1. After trying all possibilities, the simplest solution works for me&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Find where xsd2code installs the Add in =&amp;gt; Possible in c:\users[YourName]\My Documents\Visual Studio 2010\Addins or c:\Visual Studio 2010\Addins&lt;/li&gt;
&lt;li&gt;In Visual Studio. Go to Tools-&amp;gt;Options-&amp;gt;Add-in/Macros Security-&amp;gt;Add &lt;/li&gt;
&lt;li&gt;Find the path of AddIns and add to this option.&lt;/li&gt;
&lt;li&gt;Restart your computer.&lt;/li&gt;
&lt;li&gt;The &amp;quot;Run Xsd2Code generation&amp;quot; will be available when you right click on .Xsd&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>ppshoo</author><pubDate>Wed, 27 Mar 2013 19:06:39 GMT</pubDate><guid isPermaLink="false">New Post: Visual Studio AddIn not showing, a workaround 20130327070639P</guid></item><item><title>New Post: Is there any way to set XmlWriterSettings.Indent to true by default?</title><link>http://xsd2code.codeplex.com/discussions/436938</link><description>&lt;div style="line-height: normal;"&gt;I am a huge fan of xsd2code framework ! My question is about the ouptut format of the product of .SaveToFile method by default I have the output file as a long line of text , it happens because in the generated code of Serialize method xmlWriterSettings.Indent is not set to true, my question is is there a way to configure it from xsd2code api/gui ...?&lt;br /&gt;
&lt;/div&gt;</description><author>sergeyku4er</author><pubDate>Sun, 17 Mar 2013 13:48:33 GMT</pubDate><guid isPermaLink="false">New Post: Is there any way to set XmlWriterSettings.Indent to true by default? 20130317014833P</guid></item><item><title>New Post: How to write out XML</title><link>http://xsd2code.codeplex.com/discussions/435957</link><description>&lt;div style="line-height: normal;"&gt;Of course as soon as I posted, I guessed that the serialization wasn't set.  It looks like that is turned off by default.  I regenerated the code and turned it on.  You then do root.Serialize() and it spits out the XML.&lt;br /&gt;
&lt;/div&gt;</description><author>greenmodulus</author><pubDate>Fri, 08 Mar 2013 22:57:56 GMT</pubDate><guid isPermaLink="false">New Post: How to write out XML 20130308105756P</guid></item><item><title>New Post: How to write out XML</title><link>http://xsd2code.codeplex.com/discussions/435957</link><description>&lt;div style="line-height: normal;"&gt;I am using this to made a C# class from an XSD. Then I use that to populate the XML via the created objects.  Once it is populated, I want to write the result out to XML.  In LinqToXSD, you just said topElement.ToString() and all the XML was there.  In Xsd2Code, that just writes out the type of the root element.&lt;br /&gt;
&lt;br /&gt;
How do I take the root element of the C# class with all its subobjects and convert it to the raw XML?&lt;br /&gt;
&lt;/div&gt;</description><author>greenmodulus</author><pubDate>Fri, 08 Mar 2013 22:52:49 GMT</pubDate><guid isPermaLink="false">New Post: How to write out XML 20130308105249P</guid></item><item><title>New Post: Visual Studio 2012 add-in support</title><link>http://xsd2code.codeplex.com/discussions/432815</link><description>&lt;div style="line-height: normal;"&gt;Thanks, also managed to update our local setup package to copy this to the VS2012 install folder and respective areas.&lt;br /&gt;
Sorted&lt;br /&gt;
&lt;/div&gt;</description><author>Darkside</author><pubDate>Mon, 04 Mar 2013 16:29:13 GMT</pubDate><guid isPermaLink="false">New Post: Visual Studio 2012 add-in support 20130304042913P</guid></item><item><title>New Post: XSD documentation not carried over to C#</title><link>http://xsd2code.codeplex.com/discussions/252618</link><description>&lt;div style="line-height: normal;"&gt;I had a similar problem and found out that annotations are not rendered into summary comments when the annotated element is a child of an &amp;lt;xs:all/&amp;gt; element. &lt;br /&gt;
&lt;/div&gt;</description><author>tjeerdhans</author><pubDate>Fri, 22 Feb 2013 16:05:31 GMT</pubDate><guid isPermaLink="false">New Post: XSD documentation not carried over to C# 20130222040531P</guid></item><item><title>New Post: I think I may have found a bug with XSD Enum support???</title><link>http://xsd2code.codeplex.com/discussions/434049</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
Just been playing around with Enums in XSDs and I notice that while enums are created in the destination class, the private fields were not.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=3)]
        public virtual PersonMaritalStatus MaritalStatus {
            get {
                return this.maritalStatusField; //Field not created
            }
            set {
                this.maritalStatusField = value;
            }
        }&lt;/code&gt;&lt;/pre&gt;

Thoughts...??&lt;br /&gt;
&lt;/div&gt;</description><author>ESSB</author><pubDate>Fri, 22 Feb 2013 00:37:46 GMT</pubDate><guid isPermaLink="false">New Post: I think I may have found a bug with XSD Enum support??? 20130222123746A</guid></item><item><title>New Post: Validation Data Annotations and XSD2Code.....</title><link>http://xsd2code.codeplex.com/discussions/433946</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
What is the best way to use Data Annotation Validations with XSD2Code generated classes. Obviously one can create buddy classes and manually add the annotations, but there must be a better method. I did look in nuget for some form of buddy class scaffolder, but could only find one that read EDMX files for EF classes.&lt;br /&gt;
&lt;br /&gt;
Also this also asks the question as to whether it would or could be possible to define validation in the XSD Schema file via facets and have these validations carried across into the .NET class as Validation Data Annoations. I think they are called &amp;quot;restrictions&amp;quot;, and one can set minimum length for values etc. Also one can set patterns for valid data, basically all good schema validation functionality.&lt;br /&gt;
&lt;/div&gt;</description><author>ESSB</author><pubDate>Thu, 21 Feb 2013 11:21:04 GMT</pubDate><guid isPermaLink="false">New Post: Validation Data Annotations and XSD2Code..... 20130221112104A</guid></item></channel></rss>