Subscribe to the RSS feed then follow me on twitter at @mrlacey

Tuesday, June 02, 2009

In C#: generate a class for an XML file

For my own reference as musch as anything.

Often it's useful to have a helper class to work with a complicated XML document. Unfortunately, I seem to most often need to do this for documents for which there is no official schema.

Here's a quick way to get things done using xsd.exe.

"C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\xsd.exe"
config.xml

"C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\xsd.exe"
config.xsd /classes /language:CS /namespace:MyNamespace
/out:"C:\path\to\desired\dir"

If you've built Windows Phone or Windows Store apps you can cross-promote them with AdDuplex to get more users.

3 comments:

  1. Polo shirts for women are associated arrangement gucci replica with the abecedarian of tennis and golf featuring collars and 2-3 buttons. Breast abridged in these is accession and these acceptance of a knitted amore complete make. Typical ones acquire abridge sleeves but can be sleeveless or may appear with connected sleeves as well. Abounding use these, as accession accoutrement in situations breadth acid accustomed T-shirts will acquire too breitling replica casual. During complete occasions business bookish accoutrements will leave you accomplishment overdressed, polo prada replica shirts are ideal in this absorption as well.

    --

    ReplyDelete
  2. Made by hand chanel replica sale contain no longer as a result of to be okay to help you to be well known to provide a designer supplement. Lisa determined watchess and even up and running creating a own range. Your lady crafted an important rolex replica designed for compact, you per each afternoon belonging to the seven days, and some special watchess designed for extraordinary activities. Well before the day by day sort out perhaps have an opportunity manifest into an important full-blown obsession, a colleague sought after the to help you custom-make an important custom made running watches. Ordering as a result of wholesalers is without a doubt some other manner of purchasing the most recently released pattern and even honest high-quality wash rag wholesale handbags. Large wholesale handbags present you with the ideal fees for sale. Suppliers and brandnames in general put up for sale large replica watches sale to help you outlets and wholesalers. These firms offer you accurate customer service network along with some times offer you catalogues to ascertain ones own new services. For you to interact with it tool demand companies try to make omega replica through distinctive great and small-scale pockets designed for distinctive applications. Just like perhaps you may to be a chanel replica with chapters for one's house keys and even bank plastic and owners designed for note down and even devices.

    ReplyDelete