View Single Post
Old 01-29-2013, 01:25 PM   PM User | #1
bdenny20
New Coder

 
Join Date: Jan 2013
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
bdenny20 is an unknown quantity at this point
Displaying XML with ASP.NET

Hello again,
I said in my first post that I would be back when I find myself stuck again, well...I'm stuck again.

Kind of at least. I haven't gotten to the point of being stuck since I need a point in the right direction first.

My project is pretty big for a first time go at. I've been studying many different aspects of coding at once...C#, VB, Razor, Javascript, CSS, jQuery, XML and ASP.NET to be precise. My head is swimming, but in a good way. This is fun.

Now, enough of that. My next goal is finding the best way to go about displaying XML as HTML. In my ASP.NET studies, I've read about the neat @render function to create layout pages. It was a big step in the right direction. I'm trying to find a way to play off that.

A big part of my project is a database of articles. Each article shares the common sections 'title,' 'date,' 'author,' 'category,' and 'content.' I'd like to create an article layout page, then have it refer to a particular XML sheet for each article and replace the corresponding divisions on the layout page with the correct sections of the article.

I'm not sure if this makes sense here, I can see it in my head though. Is there some way to make a @render type function pull information from the XML and place it in it's correct spot on the page?

I just recently heard about XSLT, but I do not know enough about it yet to know if this will be useful. I will continue my reading in the meantime.

Any feedback, or a friendly point in the right direction will be greatly appreciated.

Thanks,
Bill
bdenny20 is offline   Reply With Quote