2025-11-28 00:35:46 +09:00

37 lines
1.4 KiB
Plaintext

//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
Overview
--------
This example illustrates how to use namespaces while reading an XML document. It is a simple example that reads an
XML file and prints nodes and their namespaces to the console. An XML file that contains namespaces is
included.
XmlLite Documentation
---------------------
You can find the documentation for XmlLite in XMLLite.hxs in the Help directory of the SDK.
Requirements
------------
This sample requires the Microsoft Windows Software Development Kit (SDK) for Windows Vista and
.NET Framework 3.0. XmlLite samples require the XmlLite.h and XmlLite.lib files to build. XmlLite
samples require XmlLite.dll to run.
How to Build this Sample
------------------------
Build the sample using the latest Windows SDK. You can use Visual Studio to build the sample. If you do not
have Visual Studio installed, you can use the VCBuild utility to build the sample. In the sample directory,
enter the command VCBuild with no command line arguments.
How to Run this Sample
----------------------
Once you have built the sample, you can run it from the command line as follows:
release\XmlLiteNamespaceReader namespaces.xml