.NET XML KB Articles
HOWTO
Create a Generic ASP.NET Web Form to Test XSLT Transformations KB: 315888 |
This step-by-step article demonstrates how to create a generic ASP.NET Web form that you can use to evaluate the outcome of using different XSLT documents to transform XML documents without adding or modifying an
processing instruction in the XML documents. Running XSLT transformations by loading and processing specified XML and XSLT documents is a common functionality in XML-based ASP.NET Web applications.
|
Serialize an Object to XML by Using Visual Basic .NET KB: 315703 |
This step-by-step article describes how to serialize an object to XML by using Visual Basic .NET. This method is useful for persisting an object's state. This method is also useful for cloning an object by de-serializing the XML back to a new object.
|
Use the Office XP Web Components with XML Data Generated by an XML Web Service Created Using ASP.NET KB: 315695 |
This step-by-step article describes how to use ASP.NET to build a simple XML Web service that retrieves data from the Microsoft Access sample Northwind database and returns the data as XML to a client when the client calls a method of the service. On the client side, the data is presented with the Office XP PivotTable and Chart components. This article also demonstrates how to build a client for the XML Web service by using either Visual Basic .NET or Visual Basic 6.0.
|
Validate an XML Document by Using DTD, XDR, or XSD in Visual Basic .NET KB: 315533 |
Extensible Markup Language (XML) documents contain elements and attributes, and provide a flexible and powerful way to exchange data between applications and organizations. To specify the allowable structure and content of an XML document, you can write a Document Type Definition (DTD), a Microsoft XML-Data Reduced (XDR) schema, or an XML Schema definition language (XSD) schema.
XSD schemas are the preferred way to specify XML grammars in the .NET Framework, but DTDs and XDR schemas are also supported.
In this article, you will learn how to apply a DTD, XDR schema, or XSD schema to an XML document in Visual Basic .NET. You will then learn how to use the XmlValidatingReader class to validate an XML document against the specified grammar. You will also learn how to use the XmlSchemaCollection class to cache schemas in memory as a way to optimize XML validation.
|
Enable and Disable Dynamic Content in IIS 6.0 KB: 315122 |
By default, when Internet Information Services (IIS) is installed on any version of the Microsoft Windows Server 2003 family, IIS only serves static content (HTML). When you request dynamic content, such as Active Server Pages (ASP) or ASP.NET pages, you receive one of the following error messages:
HTTP Error 404 - File Not Found
-or-
HTTP Error 404- File or Directory not found To permit IIS to serve other types of content, the administrator must unlock this content in the Web service extensions node in the IIS management console. To do this, either enable a pre-existing Web service extension or add a new Web service extension.
|
Specify Fully Qualified Element Names in XPath Queries by Using Visual C# .NET KB: 313188 |
The step-by-step article shows you how to specify fully qualified element names in the NamespacePrefix:ElementName format to select nodes in an XmlDocument object.
|
Render DataTable Columns as XML Attributes Instead of Elements by Using Visual C# .NET KB: 311937 |
This article demonstrates how to render DataTable columns as Extensible Markup Language (XML) attributes. A DataTable represents one table of in-memory relational data. You can create a DataTable and use it independently, or other Microsoft .NET Framework objects can use the DataTable, most commonly as a member of a DataSet object.
|
Read XML Data into DataSet by Using Visual C++ .NET KB: 311570 |
This article explains how to read Extensible Markup Language (XML) data into an ADO.NET DataSet object.
|
Read XML Data into a DataSet by Using Visual C# .NET KB: 311566 |
This article demonstrates how to read Extensible Markup Language (XML) data into an ADO.NET DataSet object.
|
Use ASP.NET or Visual Basic.NET to Transform XML To Rich Text Format (RTF) For Microsoft Word 2002 KB: 311461 |
Use this step-by-step guide to generate Rich Text Format (RTF) from Extensible Markup Language (XML) by using Visual Basic .NET.
Rich Text Format is a text-based format that encodes formatted text, document layout, and graphics. It is commonly used with Microsoft Word. Because RTF is text-based, it can be easily generated with code. If you have XML data that you want to display in Word as a catalog/list or mail merge type document, then transforming your XML data into an RTF stream might be an ideal solution for you. And, in fact, if you are developing a solution where you generate documents on a Web server, then generating those documents using a text-based format, such as HTML or RTF, is preferred over using server-side Automation of Word.
This article provides sample code, with step-by-step instructions, to transform XML into RTF for display in Word by using several approaches:
- Save the RTF to a file and open it in Word.
- Transfer the RTF to Word by using the Windows Clipboard.
Stream the RTF to Word hosted in Microsoft Internet Explorer from an ASP.NET Web Application.
|
Update Parent-Child Data with an Identity Column from a Windows Forms Application by Using a Web Service in Visual Basic .NET KB: 310350 |
This step-by-step article describes how to retrieve a DataSet object from a Web service, how to send DiffGram updates to the Web service, and then how to merge the updated DiffGram back into the client DataSet.
|
Render DataTable Columns as XML Attributes Instead of Elements by Using Visual Basic .NET KB: 310345 |
This article demonstrates how to render DataTable columns as Extensible Markup Language (XML) attributes. A DataTable represents one table of in-memory relational data. You can create a DataTable and use it independently, or other Microsoft .NET Framework objects can use the DataTable, most commonly as a member of a DataSet object.
|
Update Server Data Through a Web Service by Using ADO.NET and Visual C# .NET KB: 310143 |
This step-by-step article demonstrates how to use a Web service to receive and to update data from a database by using a DataSet object. This article also demonstrates how to reference the Web service in a client application and how to display the returned DataSet in a DataGrid control so that you can update that data and send the updates back to the server. NOTE: You can only use the method in this article for single-table updates.
|
Read XML Data into a DataSet by Using Visual Basic .NET KB: 309702 |
This article demonstrates how to read Extensible Markup Language (XML) data into an ADO.NET DataSet object.
|
Persist an ADO.NET DataSet into XML by Using Visual C++ .NET KB: 309184 |
This article demonstrates how to persist an ADO.NET DataSet object to XML.
|
|
|