# Making Class Files From Xsd - Visual Studio / C#

**URL:** <https://forum.renoise.com/t/making-class-files-from-xsd-visual-studio-c/21424>\
**Category:** Renoise XML Fileformats & Tools\
**Created:** [February 19, 2008, 1:12am UTC](https://forum.renoise.com/t/making-class-files-from-xsd-visual-studio-c/21424 "2008-02-19T01:12:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![marr](https://forum.renoise.com/letter_avatar/marr/32/6_449c533f586939b6e5f246632a46421f.png) [@marr](https://forum.renoise.com/u/marr)\
**Post date:** [February 19, 2008, 1:12am UTC](https://forum.renoise.com/t/making-class-files-from-xsd-visual-studio-c/21424/1 "2008-02-19T01:12:08Z")

</div>

I’ve opened the .xsd (RenoiseSong10.xsd) in Visual Studio 2005… Is there an easy way to make C# classes from the XRNS schema?

Ideally it would make a .cs file for each Element and Simple Type (enumeration) in the xsd.

Otherwise I will have to do it manually… and that tree is large. ![:o](https://files.renoise.com/forum/emoticons/default/ohmy.gif)

Alternatively, if someone has broken this down into ‘classes’, OOP style, in another language I could just port it. ![:)](https://files.renoise.com/forum/emoticons/default/smile.gif)

thanks

---

<div class="post-metadata">

**Author:** ![marr](https://forum.renoise.com/letter_avatar/marr/32/6_449c533f586939b6e5f246632a46421f.png) [@marr](https://forum.renoise.com/u/marr)\
**Post date:** [February 19, 2008, 3:40am UTC](https://forum.renoise.com/t/making-class-files-from-xsd-visual-studio-c/21424/2 "2008-02-19T03:40:43Z")

</div>

Well I found a tool called xsd.exe…

[http://msdn2.microsoft.com/en-us/library/x…b0s(VS.80).aspx](http://msdn2.microsoft.com/en-us/library/x6c1kb0s(VS.80).aspx)

It works… sort of… makes a single .cs file. Not really what I wanted, but it allows for data binding.

The downside is that the names get autogenerated so there’s (inner/partial) class names like:

```auto
  
RenoiseSongTracksSequencerTrackFilterDevicesDevicesShaperDeviceRatioVisualization  
  

```

Yes, that’s one word. Kind of a pita. Guess the best bet is to code by hand…

---

<div class="post-metadata">

**Author:** ![marr](https://forum.renoise.com/letter_avatar/marr/32/6_449c533f586939b6e5f246632a46421f.png) [@marr](https://forum.renoise.com/u/marr)\
**Post date:** [February 19, 2008, 7:35am UTC](https://forum.renoise.com/t/making-class-files-from-xsd-visual-studio-c/21424/3 "2008-02-19T07:35:30Z")

</div>

…but probably better (faster?) to write an xsd reader that builds the classes more discretely.

If anyone is making C# tools for Renoise and wants to strike up a convo send me a PM.

---

<div class="post-metadata">

**Author:** ![dac514](https://forum.renoise.com/user_avatar/forum.renoise.com/dac514/32/100_2.png) [@dac514](https://forum.renoise.com/u/dac514)\
**Post date:** [February 21, 2008, 3:06pm UTC](https://forum.renoise.com/t/making-class-files-from-xsd-visual-studio-c/21424/4 "2008-02-21T15:06:14Z")

</div>

Wow, when is the Java stuff ready for the rest of us?

Also, maybe consider splitting this thread. If someone wants to use C# that’s there prerogative. I share the opinion that it’s kind of a bad oversight considering Renoise runs on OS X and Linux, too. Yes I know there’s mono… but seriously people!

---

<div class="post-metadata">

**Author:** ![BYTE-Smasher](https://forum.renoise.com/user_avatar/forum.renoise.com/byte-smasher/32/318_2.png) [@BYTE-Smasher](https://forum.renoise.com/u/BYTE-Smasher)\
**Post date:** [February 21, 2008, 5:28pm UTC](https://forum.renoise.com/t/making-class-files-from-xsd-visual-studio-c/21424/5 "2008-02-21T17:28:50Z")

</div>

If you’re not writing in ASM… GTFO!

---

<div class="post-metadata">

**Author:** ![marr](https://forum.renoise.com/letter_avatar/marr/32/6_449c533f586939b6e5f246632a46421f.png) [@marr](https://forum.renoise.com/u/marr)\
**Post date:** [December 18, 2008, 2:09am UTC](https://forum.renoise.com/t/making-class-files-from-xsd-visual-studio-c/21424/6 "2008-12-18T02:09:56Z")

</div>

> [@BYTE-Smasher](#):
>
> If you’re not writing in ASM… GTFO!

I’m on a 2GHz+ wibbler and timing isn’t an issue. I’ll save the asm for 8bit/10MHz. ![:w00t:](https://forum.renoise.com/uploads/default/original/3X/2/7/27db4681ae4f26372d8b752b818610bc301c087a.gif)

Regarding C# versus Java, I needed a pet project in C#. That no longer being the case… off to Java land.
