The IBM® Database Add-Ins for Visual Studio help you manage XML relational data.
The add-ins provide the functionality for you to decompose data from XML documents and store the data into columns in DB2 database tables. The documents that specify how to decompose XML data are the annotated XML schemas.
As an XML schema evolves, if you register updated versions of the XML schema in the XML Schema Repository (XSR), you can compare XSR objects to see the differences between the schema versions.
In the XSR Object Compare window, you can select from a menu of options to use in the comparison process. For example, you can select an option to ignore comments in the XSR objects that you are comparing.
If an XSR object contains dependencies, the dependencies are listed in the XSR Object Compare window so that you can select all or any of the individual dependencies. For example, you can select either the master document or one its dependent documents to compare.
The difference between two XSR objects is saved in a file and displayed with color-coding to show the added, removed, changed, and moved code.
Using an annotated XML schema, you can generate ADO.NET code and add the generated files to an ASP.NET Web Services project. The code is generated in the language of the project that the code is added to.
After you select the Generate Web Method command on the shortcut menu of the annotated XML schema in the Server Explorer, the Web method code is generated. The generated code is added to the ASP.NET Web Services project that is open in the Solution Explorer, and is marked as a Web method. You can build your project and deploy the Web method as a Web service.
A Generate XML Helper Code command on the shortcut menu of the XML Schema Repository node in the Server Explorer lets you create a project in the Solution Explorer that contains sample code.
The created project includes an XMLUtil.cs file that contains sample code for XML validation and XSL transformation. The code also provides you with a starting point for coding.
When you run the sample code, an XML Sample window is displayed that contains Validate Sample and Transform Sample command buttons for validating sample XML code and transforming sample XSL code.
For additional information about these XML enhancements, refer to articles in the Visual Studio .NET section of developerWorks.