Click here to Skip to main content
15,898,893 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Sending mail using default mail client in VB Pin
John Kuhn18-Feb-04 20:40
John Kuhn18-Feb-04 20:40 
GeneralMap network drives--Plzz replyy Pin
radhika8118-Feb-04 18:20
radhika8118-Feb-04 18:20 
GeneralRe: Map network drives--Plzz replyy Pin
Pugman81218-Feb-04 19:09
Pugman81218-Feb-04 19:09 
GeneralRandom numbers and letters Pin
aahmad7618-Feb-04 16:33
aahmad7618-Feb-04 16:33 
GeneralRe: Random numbers and letters Pin
Nadroj18-Feb-04 18:24
Nadroj18-Feb-04 18:24 
GeneralRe: Random numbers and letters Pin
aahmad7619-Feb-04 10:57
aahmad7619-Feb-04 10:57 
GeneralRe: Random numbers and letters Pin
Nadroj19-Feb-04 13:37
Nadroj19-Feb-04 13:37 
GeneralVB.NET read XSD from embedded resource Pin
mpalmer7818-Feb-04 9:40
mpalmer7818-Feb-04 9:40 
I'm reading xml from SQL server with VB.net using an XSD schema file. I have the code working fine, but I'd now like to change the code from reading a file on disk to reading the schema from the file as an embedded resource. Here's my code, what do I need to change??
<br />
Dim conString As String = "MyConnectionString"<br />
Dim strm As Stream<br />
Dim strmReader As StreamReader<br />
Dim cmd As New SqlXmlCommand(conString)<br />
Dim xmlDoc As New XmlDocument<br />
Dim strXML As String<br />
<br />
With cmd<br />
   .CommandText = "MyXPath"<br />
   .CommandType = SqlXmlCommandType.XPath<br />
   .SchemaPath = "C:\MySchemaFile.xsd" '**I want this to be embedded!!**<br />
   strm = .ExecuteStream<br />
End With<br />
<br />
strmReader = New StreamReader(strm)<br />
strXML = strmReader.ReadToEnd<br />
xmlDoc.LoadXml(strXML)<br />


Like I said, the above code works fine, but I don't want a physical file location.

Thanks!!!

-Michael
GeneralRe: VB.NET read XSD from embedded resource Pin
Mike Ellison19-Feb-04 6:21
Mike Ellison19-Feb-04 6:21 
GeneralPassing data from datagrid to Dataset Pin
Danny van der Walt18-Feb-04 9:17
Danny van der Walt18-Feb-04 9:17 
GeneralRe: Passing data from datagrid to Dataset Pin
John Kuhn18-Feb-04 20:23
John Kuhn18-Feb-04 20:23 
GeneralRe: Passing data from datagrid to Dataset Pin
Danny van der Walt19-Feb-04 19:55
Danny van der Walt19-Feb-04 19:55 
GeneralRe: Passing data from datagrid to Dataset Pin
John Kuhn22-Feb-04 8:07
John Kuhn22-Feb-04 8:07 
GeneralRe: Passing data from datagrid to Dataset Pin
Danny van der Walt22-Feb-04 23:57
Danny van der Walt22-Feb-04 23:57 
GeneralRe: Passing data from datagrid to Dataset Pin
John Kuhn23-Feb-04 13:49
John Kuhn23-Feb-04 13:49 
GeneralExcel in VB6 Pin
Wilbur J. Pereira18-Feb-04 7:41
Wilbur J. Pereira18-Feb-04 7:41 
GeneralRe: Excel in VB6 Pin
John Kuhn20-Feb-04 9:54
John Kuhn20-Feb-04 9:54 
GeneralRe: Excel in VB6 Pin
John Kuhn23-Feb-04 16:36
John Kuhn23-Feb-04 16:36 
GeneralArray display Pin
Isaiah2518-Feb-04 4:26
Isaiah2518-Feb-04 4:26 
GeneralRe: Array display Pin
Yogendra Agarwal19-Feb-04 9:12
Yogendra Agarwal19-Feb-04 9:12 
Generalnull delimited string Pin
r i s h a b h s17-Feb-04 23:47
r i s h a b h s17-Feb-04 23:47 
GeneralRe: null delimited string Pin
steff kamush18-Feb-04 5:35
steff kamush18-Feb-04 5:35 
GeneralRe: null delimited string Pin
r i s h a b h s18-Feb-04 16:45
r i s h a b h s18-Feb-04 16:45 
GeneralRe: null delimited string Pin
steff kamush19-Feb-04 4:32
steff kamush19-Feb-04 4:32 
GeneralRe: null delimited string Pin
r i s h a b h s19-Feb-04 17:58
r i s h a b h s19-Feb-04 17:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.