---
title: "class till xsd?"
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/109864-class-till-xsd"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "Walker"
published: "2004-08-23T13:29:49.000Z"
updated: "2004-08-23T18:29:55.000Z"
replies: 2
views: 298
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/109864-class-till-xsd"
---

# class till xsd?

## #1 — Walker, 2004-08-23T13:29Z

Hej

Har hittat en del verktyg som konverterar xsd filer till c# klasser, men jag undrar om det finns någon som hittat ett verktyg som går andra vägen. dvs skapar xsd filer utifrån klasser. 

/w

Permalänk: https://www.webforum.nu/p/109864

## #2 — Dino, 2004-08-23T14:21Z

XML Schema Definition Tool (Xsd.exe) borde klara det.

> Xsd.exe performs the following operations: 
> 
> XDR to XSD 
> Generates an XML schema from an XML-Data-Reduced schema file. XDR is an early XML-based schema format. 
> XML to XSD 
> Generates an XML schema from an XML file. 
> XSD to DataSet 
> Generates common language runtime DataSet classes from an XSD schema file. The generated classes provide a rich object model for regular XML data. 
> XSD to Classes 
> Generates runtime classes from an XSD schema file. The generated classes can be used in conjunction with System.XML.Serialization.XMLSerializer to read and write XML code that follows the schema. 
> **Classes to XSD 
> Generates an XML schema from a type or types in a runtime assembly file. The generated schema defines the XML format used by System.XML.Serialization.XMLSerializer.** 
> Xsd.exe only allows you to manipulate XML schemas that follow the XML Schema Definition (XSD) language proposed by the World Wide Web Consortium (W3C). For more information on the XML Schema Definition proposal or the XML standard, see <http://w3.org.>

Permalänk: https://www.webforum.nu/p/1418160

## #3 — Walker, 2004-08-23T18:29Z

Stämmer bra det.. Tackar

Permalänk: https://www.webforum.nu/p/1418282

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/109864-class-till-xsd
