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 30th, 2003, 07:29 AM
stelogic stelogic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 22 stelogic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hiding Tags

The following code does exactly what i want, which is pull the info from the db and display it... wooo hoooo..

the problem is it also shows the tags !!

so the question is ... how do i hide them ?




<?xml version="1.0" encoding="ISO-8859-1"?>
<MESSAGELIST>

<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "textodbc"
Set Tape = Conn.Execute("select * from users")
Do While Not Tape.EOF
%>

<TEXTMESSAGE>
<USERNAME><%=Tape("USERNAME")%></USERNAME>
<PWORD><%=Tape("PWORD")%></PWORD>
<REF><%=Tape("REF")%></REF>
<GSMNO><%=Tape("GSMNO")%></GSMNO>
<CONTENT><%=Tape("CONTENT")%></CONTENT>
</TEXTMESSAGE>



<% Tape.MoveNext
Loop
%>
</MESSAGELIST>

Reply With Quote
  #2  
Old June 30th, 2003, 08:07 AM
adcworks2 adcworks2 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 5 adcworks2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
shows all the tags? You mean in IE? You mean you see the default IE view of XML .. i.e red and blue formatted XML?

What do you expect instead?

Reply With Quote
  #3  
Old June 30th, 2003, 08:10 AM
stelogic stelogic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 22 stelogic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
yep thats exactly what i mean ... in ie it shows all the coloured tags .. i would like to see just the data and not the tags ..

steve

Reply With Quote
  #4  
Old June 30th, 2003, 09:17 AM
Targaz's Avatar
Targaz Targaz is offline
I played Richard the Third
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Den Haag, Netherlands
Posts: 122 Targaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
err...

what kind of document is this ASP? XML? XSL?
__________________
Now is the winter of our discontent made glorious summer by this son of York.

Reply With Quote
  #5  
Old June 30th, 2003, 09:19 AM
stelogic stelogic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 22 stelogic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
sorry ... asp.

steve

Reply With Quote
  #6  
Old June 30th, 2003, 09:46 AM
adcworks2 adcworks2 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 5 adcworks2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
and how do you want to see it? with tags? or just with the tag content? and what about tag attributes?
you'll have to be precise mate...give us a sample of what you want to see..

Reply With Quote
  #7  
Old June 30th, 2003, 09:59 AM
stelogic stelogic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 22 stelogic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
sorry. i thought i had been quite precise with

"the problem is it also shows the tags !!

so the question is ... how do i hide them ?"

I dont want to see the tags i ONLY want to see the data (no tags ...no tag attributes) just the data.

I want to see

steve
spanners
01511
4478454874547
this is a test

not

<USERNAME>steve</USERNAME
<PWORD>spanners</PWORD>
<REF>01511</REF>
<GSMNO>4478454874547</GSMNO>
<CONTENT>this is a test</CONTENT>

Reply With Quote
  #8  
Old June 30th, 2003, 10:09 AM
stelogic stelogic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 22 stelogic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i have seen it before where the screen output was just the text .. the source code contained the tags and there was defo no XSL involved in that .. getting back to that would do me if you have any ideas how???

Reply With Quote
  #9  
Old June 30th, 2003, 10:21 AM
stelogic stelogic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 22 stelogic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i have had the data displaying the way i want in the past but have overwritten the file working on different versions and i dont know how to write XSL so like i said there was "defo no XSL in that" ..any more ideas ...

Reply With Quote
  #10  
Old June 30th, 2003, 10:22 AM
stelogic stelogic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 22 stelogic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
and just to prove it .... check out

http://www.rs-design.uk.com/sms/list2.asp

Reply With Quote
  #11  
Old June 30th, 2003, 10:23 AM
stelogic stelogic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 22 stelogic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
and the problem with that script is it doesnt loop ... when i try the 2 together i get the problem i mentioned in my first mail...

Someone must know a fix for this ..

Please HELP me

Reply With Quote
  #12  
Old June 30th, 2003, 10:43 AM
stelogic stelogic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 22 stelogic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
this one has no <htm> tags and still gives me the desired result but with no loop (and no XSL)

http://www.rs-design.uk.com/sms/list7.asp

Reply With Quote
  #13  
Old June 30th, 2003, 10:53 AM
stelogic stelogic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 22 stelogic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ok .. that makes sense ... can you tell me why when i just removed the <?xml... from http://www.rs-design.uk.com/sms/list5.asp that shows a different result ? (with tags )

Reply With Quote
  #14  
Old July 3rd, 2003, 08:56 AM
mark_d2000 mark_d2000 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 mark_d2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm no wizzard with XSL, so I used XMLSPY and created a schema for my xml file, then used the style sheet designer that came with xmlspy and created a style sheet for that schema and associated it with my xml files. worked perfectly.

On the down side, xmlspy costs money, so I only dl'd the trial version of it, but I'm sure there are freeware alternatives out there if you want to avoid doing it all manually.

Cheers.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Hiding Tags


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 |