473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Checkboxlist with XML

me
Hello,

I have a novice question:

How do you populate a checkboxlist with XML data?

TIA
Nov 19 '05 #1
2 1644
Actually, that depends on a lot.

Has it to be high performant?
Do you have to search in the xml file?
Do you need to do some transformation of the xml file?
....

You can find a lot of documentation about this on the internet.
For example, a nice document of the different way's you can use, can you
find at http://support.softartisans.com/kbview.aspx?ID=674

It describes the most commenly used way's to access the data in xml files,
and also mentions when to use which way.

If I had to choose, I'd use the XPathNavigator when I have to search in the
xml file for values needed to populate the checkboxlist (for example when you
have a very large xml file, with somewhere in it the values you need).

At the other hand, what is not mensioned in the document, but might be
interesting :
When you have a simple xml file structure, and you are going to use it (or
xml files with are identically in structure) a lot. And when the structure of
the xml file will not change, then I would create a new class for it.
(This is very simple : In VS2003, include an example xml file in the
project, double click on it, richt click on the document, generate a schema
for it, open that one, richt click and create a dataset from it. At that
moment a new class is created, which inherents from DataSet. This class you
can use to 'ReadXml' and 'WriteXml' to create and save a 'dataset'.

Kind regards,

Michel

"me" wrote:
Hello,

I have a novice question:

How do you populate a checkboxlist with XML data?

TIA

Nov 19 '05 #2
me
Michel

Thanks.
"Michel" <Mi****@discussions.microsoft.com> wrote in message
news:03**********************************@microsof t.com...
Actually, that depends on a lot.

Has it to be high performant?
Do you have to search in the xml file?
Do you need to do some transformation of the xml file?
...

You can find a lot of documentation about this on the internet.
For example, a nice document of the different way's you can use, can you
find at http://support.softartisans.com/kbview.aspx?ID=674

It describes the most commenly used way's to access the data in xml files,
and also mentions when to use which way.

If I had to choose, I'd use the XPathNavigator when I have to search in the xml file for values needed to populate the checkboxlist (for example when you have a very large xml file, with somewhere in it the values you need).

At the other hand, what is not mensioned in the document, but might be
interesting :
When you have a simple xml file structure, and you are going to use it (or
xml files with are identically in structure) a lot. And when the structure of the xml file will not change, then I would create a new class for it.
(This is very simple : In VS2003, include an example xml file in the
project, double click on it, richt click on the document, generate a schema for it, open that one, richt click and create a dataset from it. At that
moment a new class is created, which inherents from DataSet. This class you can use to 'ReadXml' and 'WriteXml' to create and save a 'dataset'.

Kind regards,

Michel

"me" wrote:
Hello,

I have a novice question:

How do you populate a checkboxlist with XML data?

TIA

Nov 19 '05 #3

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

Similar topics

0
by: Bryce Budd | last post by:
Hello All, I've been a taker of information from newsgroups for a long time and thought I'd finally make a contribution back to the community whose supported me when I've needed it. After all...
4
by: dm_dal | last post by:
Is there a know issue surrounding the CheckBoxList control and it's viewstate? When my control is created, it's ListItems are checked as needed, but on a postback, they loose their Selected...
4
by: Shaul Feldman | last post by:
Hello, I have something really awkward at work - fighting with CheckBoxList... How can I define CSS for ListItem in CheckBoxList programmatically. I add CheckBoxList's Items on the fly, something...
5
by: Eirik Eldorsen | last post by:
I'm trying to code a reapter that for each listelement show a checkboxlist. I'm almost there. The only thing I can't figure out is how to set the ID of the checkboxlists. This is my code:...
3
by: I am Sam | last post by:
I keep getting the following error message when I try to iterate through a CheckBoxList control: Object reference not set to an instance of an object. Description: An unhandled exception...
5
by: Patrick.O.Ige | last post by:
I'm binding a CheckBoxlist below in the ItemDataBound(the CheckBoxList is in a Datalist) By doing "li.Selected = True" i can see all the checkBoxes are selected. But what i want is to be able...
4
by: Patrick.O.Ige | last post by:
I have a CheckBoxList in a DataList and i'm trying to get item Selected after doing a postBack. I have set my CheckBoxlist AutoPostBack="True" Any ideas what 'm doing wrong? It seems not to...
2
by: Patrick.O.Ige | last post by:
I have some boolean value(1 or 0 ) in a table and i want a databinded CheckBoxList to present the selected values on the page.. With CheckBox i know i can se the Checked property like so :-...
0
by: Jai | last post by:
Hi, Somebody please tell me how to bind(two way) a checkboxlist with objectdatasource if the checkboxlist is inside a formview..... Code of FormView is like this::--- <asp:FormView...
0
by: Jai | last post by:
Hi, Somebody please tell me how to bind(two way) a checkboxlist with objectdatasource if the checkboxlist is inside a formview..... Code of FormView is like this::--- <asp:FormView...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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...
0
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...

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.