Proszę Pana, dziś są urodziny mojej mamy… Chcę kupić kwiaty, ale nie mam wystarczająco pieniędzy… Kupiłem chłopcu bukiet. A po jakimś czasie, gdy przyszedłem na grób, zobaczyłem tam ten bukiet.

twojacena.pl 2 godzin temu

Dzisiaj w sklepie spotkałem chłopca, który stał w kącie, nieśmiało przytulając swoją starą skarbonkę. Miał może dziesięć lat, a w oczach taką powagę, jakby dźwigał cały świat.

Proszę pana, dzisiaj są urodziny mojej mamy Chcę kupić kwiaty, ale nie mam dość pieniędzy szepnął.

Kupił mu bukiet. A potem, gdy sam poszedłem na cmentarz, zobaczyłem ten sam bukiet na jednym z grobów.

Gdy Paweł miał zaledwie pięć lat, jego świat się zawalił. Matka odeszła. Stał w kącie pokoju, ogłuszony, nie rozumiejąc, dlaczego dom jest pełen obcych ludzi, dlaczego wszyscy mówią w ciszy, unikając jego wzroku. Nie wiedział, czemu nikt się nie uśmiecha. Czemu powtarzają: Bądź dzielny, mały, ściskając go tak, jakby już stracił coś najważniejszego. A on po prostu nie widział mamy od rana.

Ojciec cały dzień gdzieś znikał. Nie przytulił, nie powiedział ani słowa. Tylko siedział z boku, pusty i daleki. Paweł podszedł do trumny i długo patrzył na matkę. Nie była już taka, jaką pamiętał bez uśmiechu, bez ciepła. Blada, zimna. Przerażająca. I nie odważył się już podejść bliżej.

Bez niej wszystko stało się szare. Puste. Dwa lata później ojciec ożenił się pon—
title: „How to: Use the XML Schema Definition Tool to Generate Classes and XML Schema Documents | Microsoft Docs”
ms.custom: „”
ms.date: „03/30/2017”
ms.prod: „.net”
ms.reviewer: „”
ms.suite: „”
ms.technology: dotnet-standard
ms.tgt_pltfrm: „”
ms.topic: „article”
dev_langs:
– „VB”
– „CSharp”
– „C++”
– „jsharp”
helpviewer_keywords:
– „generating XML classes using XML Schema Definition tool”
– „generating XML Schema Document using XML Schema Definition tool”
– „XML Schema Definition tool, using to generate classes that conform to specific schema”
– „XML Schema Definition tool, using to generate XML Schema Document”
ms.assetid: 51f0edc3-993d-4050-b7f2-77753694d3d1
caps.latest.revision: 5
author: „mairaw”
ms.author: „mairaw”
manager: „wpickett”

# How to: Use the XML Schema Definition Tool to Generate Classes and XML Schema Documents
The XML Schema Definition tool (Xsd.exe) allows you to generate an XML schema that describes a class or generate the class defined by an XML schema. The following procedures show how to perform these operations.

### To generate classes that conform to a specific schema

1. Open a command prompt.

2. Pass the XML Schema as an argument to the XML Schema Definition tool, which creates a set of classes that are precisely matched to the XML Schema, for example:

„`
xsd mySchema.xsd
„`

The tool can only process schemas that reference the World Wide Web Consortium XML specification of March 16, 2001. In other words, the XML Schema namespace must be „http://www.w3.org/2001/XMLSchema” as shown in the following example.

„`
<?xml version="1.0" encoding="utf-8"?>

„`

3. Modify the classes with methods, properties, or fields, as necessary. For more information on modifying a class with attributes, see [Controlling XML Serialization Using Attributes](../../../docs/standard/serialization/controlling-xml-serialization-using-attributes.md) and [Attributes That Control Encoded SOAP Serialization](../../../docs/standard/serialization/attributes-that-control-encoded-soap-serialization.md).

It is often useful to examine the XML stream that is generated when instances of a class (or classes) are serialized. For example, you might publish your schema for others to use, or you might compare it to a schema that you are trying to attain compatibility with.

#### To generate an XML Schema document from a set of classes

1. Compile the class or classes into a DLL.

2. Open a command prompt.

3. Pass the DLL as an argument to Xsd.exe, for example:

„`
xsd MyFile.dll
„`

The schema (or schemas) will be written, beginning with the name „schema0.xsd”.

## See Also

[The XML Schema Definition Tool and XML Serialization](../../../docs/standard/serialization/the-xml-schema-definition-tool-and-xml-serialization.md)
[Introducing XML Serialization](../../../docs/standard/serialization/introducing-xml-serialization.md)
[XML Schema Definition Tool (Xsd.exe)](../../../docs/standard/serialization/xml-schema-definition-tool-xsd-exe.md)

[How to: Serialize an Object](../../../docs/standard/serialization/how-to-serialize-an-object.md)
[How to: Deserialize an Object](../../../docs/standard/serialization/how-to-deserialize-an-object.md)

Idź do oryginalnego materiału