The
following file is available for download from the Microsoft Download
Center:
Release Date: Oct. 12,
2000
For additional information about how to download Microsoft
Support files, click the following article number to view the article in the
Microsoft Knowledge Base:
119591�
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
The Oledbospxml.exe file contains the following files:
Collapse this tableExpand this table
File name | Size |
---|
EULA.txt | 2 KB |
Oledbospxml.cpp | 10 KB |
Portfolio.xml | 1 KB |
The OSP Provider that ships with MDAC 2.6 has been
enhanced to support opening hierarchical OLE DB rowsets over arbitrary XML
files. It supports four different naming conventions to specify the path to the
file:
- http://
- file://
- UNC path
- Full DOS path
Limitations
- Client-side cursors are not supported.
- Rowsets that are created with the OSP are
read-only.
- The XMLDSO (MSXML2.DSOControl.2.6) adds an additional
column of Data ($Text) to each rowset in the hierarchy.
This sample loads an arbitrary XML document, Portfolio.xml,
into the OSP Provider and outputs data in the form of hierarchical OLE DB
rowsets. In addition, the sample provides a CMyRowset class that supports
chapters. Using this class, it illustrates how to traverse the Parent-Child
hierarchy recursively and simultaneously output data, ignoring the $Text field.
Steps to Run the Sample
- Create an empty Win32 console application.
- Insert the Oledbospxml.cpp file into the
project.
- Copy Portfolio.xml into the project folder.
- Make sure that the project is compiled using the Msdaosp.h
file that ships with the MDAC 2.6 Software Development Kit (SDK).
- Compile and then run the application.