WiX Database XML Schema

Element: ODBCDataSource

Description

ODBCDataSource for a Component

Derived By

Restricting anyType

Attributes

Name  Type  Required?  Default  Description 
Id  string  Yes    Identifier of the data source.
Name  string  Yes    Name for the data source.
DriverName  string  No    Required if not found as child of ODBCDriver element
Registration  NMTOKEN (restriction)  Yes    Scope for which the data source should be registered.
KeyPath  YesNoType  No    Set 'yes' to force this file to be key path for parent Component

Content Model

Contains elements as defined in the following table.

Component  Type  Occurs  Description 
    1..1   
Property  anyType (restriction)  0..*  Property value for a Product or Module.

Referenced By

Definition

<xs:element name="ODBCDataSource">
<xs:annotation>
<xs:documentation>
ODBCDataSource for a Component
</xs:documentation>
<xs:appinfo>
<xse:msiRef table="ODBCDataSource" href="http://msdn.microsoft.com/library/aa370546.aspx" xmlns:xse="http://schemas.microsoft.com/wix/2005/XmlSchemaExtension" />
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="Property" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Translates into ODBCSourceAttributes</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="Id" use="required" type="xs:string">
<xs:annotation>
<xs:documentation>Identifier of the data source.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Name" use="required" type="xs:string">
<xs:annotation>
<xs:documentation>Name for the data source.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DriverName" type="xs:string">
<xs:annotation>
<xs:documentation>Required if not found as child of ODBCDriver element</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Registration" use="required">
<xs:annotation>
<xs:documentation>Scope for which the data source should be registered.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="machine">
<xs:annotation>
<xs:documentation>
Data source is registered per machine.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="user">
<xs:annotation>
<xs:documentation>
Data source is registered per user.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="KeyPath" type="YesNoType">
<xs:annotation>
<xs:documentation>Set 'yes' to force this file to be key path for parent Component</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>