I am creating an xml file with LINQ as follows...
Public Sub CreateXml()
Dim db As New MDataContext
Dim Customers = <gallery columns="3" rows="3">
<%= From customer In db.Customers _
Select <customer>
<name><%= customer.CustName %></name>
<surname><%= customer.Surname %></surname>
</customer> %>
</gallery>
Customers.Save("d:\1.xml")
End Sub
Could i mix local values with the ones returned from the LINQ query... Something like the following?
Public Sub CreateXml(ByVal **Col** As String, ByVal **Row** As String)
Dim db As New MDataContext
Dim Customers = <gallery columns="& **Col** &" rows="& **Row** &">
<%= From customer In db.Customers _
Select <customer>
<name><%= customer.CustName %></name>
<surname><%= customer.Surname %></surname>
</customer> %>
</gallery>
Customers.Save("d:\1.xml")
Process.Start("d:\1.xml")
End Sub