473,508 Members | 2,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML DataSource and where to store it

Hello:

Is there a way to directly databind to an XML file? Right now I am
manually opening the file, finding my tags and adding the values to a
BindingSource.

While I'm on the topic, how and where should I store an XML file that
holds validation-type values? I need to allow my user to change this
file to add expense types. I feel like I am forced to store the XML
either in the application folder or in the bin directory during
development. I would prefer the XML file to follow the exe . . .
wherever it may go . . . automatically.

Thanks,
Travis
Dec 31 '07 #1
2 1763
On Dec 31, 7:23*am, "jehugalea...@gmail.com" <jehugalea...@gmail.com>
wrote:
Hello:

Is there a way to directly databind to an XML file? Right now I am
manually opening the file, finding my tags and adding the values to a
BindingSource.

While I'm on the topic, how and where should I store an XML file that
holds validation-type values? I need to allow my user to change this
file to add expense types. I feel like I am forced to store the XML
either in the application folder or in the bin directory during
development. I would prefer the XML file to follow the exe . . .
wherever it may go . . . automatically.

Thanks,
Travis
Well, I figured out the second part. Duh! Just set Copy to Output
Directory on the property screen. That's settles that. Now, what about
XML data sources?
Dec 31 '07 #2

<je**********@gmail.comwrote in message
news:40**********************************@i29g2000 prf.googlegroups.com...
On Dec 31, 7:23 am, "jehugalea...@gmail.com" <jehugalea...@gmail.com>
wrote:
Hello:

Is there a way to directly databind to an XML file? Right now I am
manually opening the file, finding my tags and adding the values to a
BindingSource.

While I'm on the topic, how and where should I store an XML file that
holds validation-type values? I need to allow my user to change this
file to add expense types. I feel like I am forced to store the XML
either in the application folder or in the bin directory during
development. I would prefer the XML file to follow the exe . . .
wherever it may go . . . automatically.

Thanks,
Travis
Well, I figured out the second part. Duh! Just set Copy to Output
Directory on the property screen. That's settles that. Now, what about
XML data sources?
Do you mean read the XML into a Dataset and bind the Dataset to a Control?

http://support.microsoft.com/kb/311566

Jan 1 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3063
by: Ron | last post by:
I have a bunch of Crystal Reports (v9) published as WebServices and use a ReportViewer to display the reports on the ASPNET page. Everytime we move the reports from dev to production we have to...
4
1135
by: Jerry Camel | last post by:
On the WebLogic side of our development team, we use JNDI and access datasources that are defined outside the actual application. This is an advantage in several ways... Not the least is becasue...
2
3425
by: scottls | last post by:
Hi All, Thanks for reading my post. I have been working on getting nested datalists working properly wihtin my framework for many days and I think I'm almost there. See if you could help me...
2
1475
by: =?Utf-8?B?QnJldA==?= | last post by:
I am a VB and SQL developer but new to ASP.Net world. I have a SQL Datasource that returns an ID of the Current user. I've setup a second SQL Datasource that performs a SELECT statement to a table...
0
3475
by: shahiz | last post by:
This the error i get when i try to run my program Error: Unable to realize com.sun.media.amovie.AMController@18b81e3 Basically i have a mediapanel class that initialize and play the media as...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7115
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7489
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5047
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.