This sample illustrates using the XSD utility and XML serialization to create in-memory objects that have been deserialized from XML files.
The sample consists of two elements:
The sample source is found in two directories under sscli\samples\howto\xmlserialization:
The build output location is %TARGETCOMPLUS%\samples\howto\xmlserialization.
The output files are:
The input file, inputdata.xml, is also copied to the %TARGETCOMPLUS%\samples\howto\xmlserialization directory.
The sample displays the status of deserializing the object from the XML file and reserializing it. After the sample runs, a new file named purchaseorder_serialized.xml will have been created in the %TARGETCOMPLUS%\samples\howto\xmlserialization directory. This file contains the modified content of the deserialized object instance.
All samples are built from the buildall script.
You can also build all the
samples by switching to the root of the sample directory, sscli\samples, and typing
build -c.
You can build this specific sample by switching to the sample directory and typing
build -c.
These steps require that the Shared Source CLI (SSCLI) be already built and functional.
clix xmlserialize.exe
Copyright (c) 2002 Microsoft Corporation. All rights reserved.