473,666 Members | 1,989 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 1767
On Dec 31, 7:23*am, "jehugalea...@g mail.com" <jehugalea...@g mail.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**********@g mail.comwrote in message
news:40******** *************** ***********@i29 g2000prf.google groups.com...
On Dec 31, 7:23 am, "jehugalea...@g mail.com" <jehugalea...@g mail.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
3073
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 open the reports and manually change the datasouce to the production database. Is there a way to set the datasouce on the webserviced reports dynamically? (A datasource property or something?) cant seem to find anything. Thanks!
4
1144
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 our DBA's insist on having different names for the development and production versions of the databases. So I've had to recompile or reconfigure my web apps in order to move them to production. To me this is a bit against the entire purpose of...
2
3428
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 get over the hump here. Some of our products come in different sizes - i.e. what I call "units". Some products don't. I successfully created the first datalist (called productList) to show our products with their general
2
1479
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 but now need to use the WHERE criteria to capture the ID from the 1st datasource mentioned above to query the results for the current user. Please what is the best way or ways to accomplish this? I know I need a parameter that is bound to a...
0
3482
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 datasource import java.awt.BorderLayout; import java.awt.Component; import java.io.*; import java.net.URL; import javax.media.*;
0
8448
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8640
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6198
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5666
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2773
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 we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1776
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.