Click here to Skip to main content
15,895,777 members
Articles / Programming Languages / XML

A cool utility to convert XML schemas to classes

Rate me:
Please Sign up or sign in to vote.
4.53/5 (7 votes)
9 Oct 2009CPOL4 min read 46.4K   14K   49  
A cool utility to convert XML schemas to classes.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace XMLtoClass
{
    public partial class schemaExample : Form
    {
        public schemaExample()
        {
            InitializeComponent();
            textBox1.Text = "<xs:annotation>\r\n\t<xs:documentation>\r\n\t\t<xs:annotation id=\"summary\">\r\n\t\t\t<xs:documentation>commento per l'Intellisense.</xs:documentation>\r\n\t\t</xs:annotation>\r\n\t\t<xs:annotation id=\"remarks\">\r\n\t\t\t<xs:documentation>questo � il commento esteso per la guida.</xs:documentation>\r\n\t\t</xs:annotation>\r\n\t</xs:documentation>\r\n</xs:annotation>";
        }

        private void textBox1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions