Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Named attributes in schem xsd file

Status
Not open for further replies.

SBendBuckeye

Programmer
May 22, 2002
2,166
0
0
US
Hello all,
In a schema xsd file, the connection string information is stored in a Connection element. What are the possible named attributes within that element and what do they mean? Thanks in advance for any ideas and/or suggestions!
 
>In a schema xsd file, the connection string information is stored in a Connection element.
There isn't an element in the w3c schema namespace called "Connection". That is not a vacabulary of (xsd) schema.
 
Hello,

From a Visual Studio Schema file:
Code:
<Connections>
  <Connection AppSettingsObjectName="MySettings" 
AppSettingsPropertyName="RbdmsConnectionString" ConnectionStringObject="" 
IsAppSettingsProperty="true" Modifier="Assembly" 
Name="RbdmsConnectionString (MySettings)" ParameterPrefix="@" 
PropertyReference="ApplicationSettings.RbdmsInspectDataCustom.My.
MySettings.GlobalReference.Default.RbdmsConnectionString" 
Provider="System.Data.SqlClient" />
</Connections>
 
I see that an xml document all right. But, it is not a schema (xsd) file. The true schema file can be read from DataSource.xsd. It is where you could find all the necessary structure.
[tt]
<xs:element name="Connections" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="Connection" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence />
<xs:attribute name="Name" type="xs:string" use="required" />
<xs:attribute name="AppSettingsObjectName" type="xs:string" />
<xs:attribute name="AppSettingsPropertyName" type="xs:string" />
<xs:attribute name="ConnectionStringObject" type="xs:string" />
<xs:attribute name="IsAppSettingsProperty" type="xs:boolean" />
<xs:attribute name="Modifier" type="xs:string" />
<xs:attribute name="PropertyReference" type="xs:string" />
<xs:attribute name="Provider" type="xs:string" />
<xs:attribute name="ParameterPrefix" type="xs:string" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
[/tt][unquote]
That spells out the structure of Connections element: its child elements and attributes admissible.
 
Sorry for my lack of clarity and imprecise language in my original post and response. Could you please post a link to where you found the above information? Thanks for taking time to respond!
 
Boy, I guess I need a cup of coffee. All of the above discussion pertains to the Xsd file created by Visual Studio when a strongly typed DataSet object is created. Sorry for not being more clear on the front end.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top