473,395 Members | 1,948 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,395 software developers and data experts.

SQL table to XML Conversion for a tree control

hi,

I have a SQL Table in the below format

Code | Item1 | Item2 | Item3

C1 01 00 00
C2 01 01 00
C3 01 02 00
c4 01 02 01
c5 01 02 02

here 00 indicates level 0,01 indicates level 1 and so on.

I need this to be displayed in a treeview (XML format)

can XML format can be recived from SQL Server2000 itself or it has to
be done using TreeView Control and generating the XML from the
dataset?

Thanks in advance
-Satish
Nov 11 '05 #1
1 5312
Hi,

generating XML in the database:
http://www.codeproject.com/useritems/SqlXmlTreeView.asp

Generating XML from DataSet and using XSLT to transform it for TreeView
http://www.aspalliance.com/joteke/tr...e/article.aspx

--
Teemu Keiski
MCP, Designer/Developer
Mansoft tietotekniikka Oy
http://www.mansoft.fi

ASP.NET Forums Moderator, www.asp.net
AspAlliance Columnist, www.aspalliance.com

Email:
jo****@aspalliance.com
"Satish" <te********@rediffmail.com> wrote in message
news:68**************************@posting.google.c om...
hi,

I have a SQL Table in the below format

Code | Item1 | Item2 | Item3

C1 01 00 00
C2 01 01 00
C3 01 02 00
c4 01 02 01
c5 01 02 02

here 00 indicates level 0,01 indicates level 1 and so on.

I need this to be displayed in a treeview (XML format)

can XML format can be recived from SQL Server2000 itself or it has to
be done using TreeView Control and generating the XML from the
dataset?

Thanks in advance
-Satish

Nov 11 '05 #2

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

Similar topics

15
by: Xah Lee | last post by:
Here's the belated Java solution. import java.util.List; import java.util.ArrayList; import java.lang.Math; class math { public static List range(double n) { return range(1,n,1); }
1
by: per | last post by:
im not very good at sql but need to query the database to use in my programming script. if the database is just like this id name parent_id 1 A ...
7
by: Wolfgang Kreuzer | last post by:
Hello all, I have two tables - Projects and ProjectStruct Table Projects contains master records of the projects, ProjectStruct allows to define a project herarchie and contains the fields...
16
by: TTroy | last post by:
Hello, I'm relatively new to C and have gone through more than 4 books on it. None mentioned anything about integral promotion, arithmetic conversion, value preserving and unsigned preserving. ...
5
by: Shibu | last post by:
Hi, I have a situation where I need to convert business objects to a flat table. The reverse is also required. I am using c# and Oracle ODP. I am looking for an easier method to do the below...
0
by: Tim K. | last post by:
After reading countless articles on these controls, I still don't have a clear direction. I need a control (similar to the Query grid in MS Access) that will hold table and column names selected...
3
by: _DS | last post by:
Problem with mapping a directory tree to a tree control: It takes a while to recurse subdirs and map them to nodes. This is solved in some books I've seen (MacDonald, Albahari) by reading the...
14
by: Richard G. Riley | last post by:
Would it be wrong to use "implicit casting" instead of the standards "implicit conversion" when talking about implicit conversions between certain data types. The standard mentions "explicit...
3
by: Sergio A. | last post by:
Hello, I am developing to a simple application Web with asp.net and c #, and now I am obstructed because I need to show in the page a control treeview but for which each node is gridview or some...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.