Displaying an XML table

Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2007
Posts: 1
Reputation: MSC is an unknown quantity at this point 
Solved Threads: 0
MSC MSC is offline Offline
Newbie Poster

Displaying an XML table

 
0
  #1
Oct 17th, 2007
Hello, I'm rather new to C# though I have extensive experience with C++. I need help displaying a couple XML documents that I've created on an ASP page. My intent is to display a table showing the contents of the XML document in table form initially. After that I want to be able to run a simple search on a field that returns a matches back also displayed in a table. I have roughly an idea which direction I want to go but I'm just not quite sure where to get started. I do believe I have to populate a grid or table but I'm not sure which one to use and how that would be displayed in my function.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: Displaying an XML table

 
0
  #2
Oct 17th, 2007
Use XLINQ it'd help you a lot..
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,580
Reputation: Infarction has a spectacular aura about Infarction has a spectacular aura about Infarction has a spectacular aura about 
Solved Threads: 52
Infarction's Avatar
Infarction Infarction is offline Offline
Battle Programmer

Re: Displaying an XML table

 
0
  #3
Oct 18th, 2007
Originally Posted by RamyMahrous View Post
Use XLINQ it'd help you a lot..
Most people don't have support for that yet

If you're using ASP.NET, you'll likely want a GridView for your table, and an XmlDataSource for getting your data. If your data format doesn't line up well with how the XmlDataSource pulls it out by default, you can either create an XSL to convert between the XML and how it gets displayed, or you can write some XPath queries to build a data set programmatically and then bind to that. If by chance your server does support C# 3.0, then you should consider XLINQ.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 20
Reputation: tostrinj is an unknown quantity at this point 
Solved Threads: 1
tostrinj's Avatar
tostrinj tostrinj is offline Offline
Newbie Poster

Re: Displaying an XML table

 
0
  #4
Oct 26th, 2007
Lets just keep in mind 3.0 is still beta, right? Why would you code on beta?

Infraction is right on the money
===========================
can you repeat the part of the stuff where you said all about the things?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 3139 | Replies: 3
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC