Click to See Complete Forum and Search --> : Winform mapped to XML, XSD


ireland
February 27th, 2007, 05:13 AM
What's the best way to map a Winform component to XML/XSD?
TreeView is one option, are there others?

I have large XML file (2MB), from which I've generated an XSD file, from which I have Serializable C# classes. I want a Winform which can allow me to add/remove elements and set values in WinForm style which will result in a new XML file being generated (but containing the same style as my XSD). What's the best way to manage this?

Fishdawg65
February 27th, 2007, 09:14 AM
Do you mean that allows you to add or remove elements dynamically so you can fill in values with textboxes and what not?

This article about Dynamic Xml Form (http://www.codeproject.com/dotnet/xmldataeditor.asp) might help.

If I'm totally off, let me know.

ireland
February 27th, 2007, 10:44 AM
Yes that's the type of thing I'm looking for. Nearly works too. :thumb:

Fishdawg65
February 27th, 2007, 10:49 AM
I've also read that browsers may come out with this in the near future. That was a few months ago so I haven't looked anything recent. This would be nice if you could have your browser auto-generate this for you.