XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 15th, 2004, 09:22 AM
latrosicarius latrosicarius is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 75 latrosicarius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 1 m 11 sec
Reputation Power: 5
Send a message via AIM to latrosicarius
These guys have HTML markup in an XML table and it outputs fine

This is from the 4guysfromrolla website:

This is the XML file:
http://aspnet.4guysfromrolla.com/rss/rss.aspx

And this is the HTML-formatted page that is the result:
http://www.4guysfromrolla.com/

How do they have their output in HTML? When I do this the HTML tags are just put into the document as visible text. I had given up on doing this, but now that I see it is possible, could anybody tell me how or give me a good link to a tutorial. (I am writing pages in ASP.)

Sorry, if this is a noobie question or something, but I see people asking this all the time and I have never seen a good answer.

Thanks,
Matt

Reply With Quote
  #2  
Old June 17th, 2004, 09:45 AM
latrosicarius latrosicarius is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 75 latrosicarius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 1 m 11 sec
Reputation Power: 5
Send a message via AIM to latrosicarius
Okay I see, they are using HTML characters like &l t; for "<" and &g t; for ">" (without the spaces).

Reply With Quote
  #3  
Old June 22nd, 2004, 10:06 AM
Teflon's Avatar
Teflon Teflon is offline
Teflon The Black
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Woodbridge VA
Posts: 246 Teflon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 28 m 14 sec
Reputation Power: 5
Send a message via AIM to Teflon
to solve the problem of html tags being seen as plain text, I would encourage you to verify that you have encapsulated your asp inside the appropriate script tags and that you have properly closed all of your html tags.

The end result of any server-side scripting language (such as asp) is a html (or similiar) page, something that the browser can interpret and display to the user.

That help ya out?
__________________
Teflon - The Black <desc>Mark This Up</desc>

Reply With Quote
  #4  
Old June 22nd, 2004, 12:41 PM
latrosicarius latrosicarius is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 75 latrosicarius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 1 m 11 sec
Reputation Power: 5
Send a message via AIM to latrosicarius
Thanks for the reply.

The problem is I don't even know how to read XML with the XMLDOM object yet. I am using VBScript in ASP but it's much different than the XLS I am used to.

I am sloooooly learning but have had no sucess yet when the script is enclosed in the ASP's "<%" and "%>" tags. However, the same scripts do work when the page extension is just ".html" instead of ".asp" and I am using regular <script> tags (VBScript).

Reply With Quote
  #5  
Old June 22nd, 2004, 01:13 PM
Teflon's Avatar
Teflon Teflon is offline
Teflon The Black
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Woodbridge VA
Posts: 246 Teflon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 28 m 14 sec
Reputation Power: 5
Send a message via AIM to Teflon
if you post some sample code I might be able to help you out?
I dont know the dom with asp, I have dabbled in it with php. I do know asp and asp.net though.

Are you running the script through a server?
http://localhost/yourscript.asp ??

-Teflon

here is a sample asp code, see if it works:
Code:
<%
Dim I ' declare our loop index variable
%>

<%
' Start the loop telling it to loop from 1 to 5 incrementing
' I by one (which is the default) on each pass.
'
' ie. this would have done the same thing:
' For I = 1 To 5

For I = 1 To 5 Step 1
	' Output our HTML and text using the value of I as
	' the FONT TAG's SIZE attribute.
	%>
	<FONT SIZE="<%= I %>">Hello World</FONT><BR>
	<%
Next ' Bounce back to the top of the loop
%>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > These guys have HTML markup in an XML table and it outputs fine


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT