IBM Database Add-Ins for Visual Studio

Generating Sample XML for XML Schemas  (DB2)

You can generate sample XML for an XML schema that is registered in the XML Schema Repository. If you are developing a Windows application or a Web application that processes data in a database table, sample XML can provide information about the content of a column of XML data in the table.

Requirement:  The XML schema must be registered in the XML Schema Repository.

To generate sample XML for an XML schema:

  1. In the Server Explorer under your data connection, right-click the XML schema in the XML Schema Repository, and then select Generate Sample on the shortcut menu.

    The sample XML is generated and displayed in the XML editor.

  2. Optional: Copy the sample XML and paste it in your application.

See Also

Managing XML Data


.NET Development Forum   DB2 FAQs

© Copyright IBM Corporation 2002, 2018. All Rights Reserved.