|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
Okay I see, they are using HTML characters like &l t; for "<" and &g t; for ">" (without the spaces).
|
|
#3
|
||||
|
||||
|
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> |
|
#4
|
|||
|
|||
|
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). |
|
#5
|
||||
|
||||
|
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 %> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > These guys have HTML markup in an XML table and it outputs fine |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|