Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html display..

Status
Not open for further replies.

iLy54

Programmer
Sep 5, 2002
33
0
0
ZA
how would i display an element that has an attribute, in html.
like how would i display:
<letter no=&quot;1&quot;>rsvp</letter>

would i still be using the span tag with DATASRC='#xmldso' & DATAFLD=&quot;content&quot;. how would i use it if the element had an attribute.
thanx, -Mon3y is the r00t of all evil and every man needs roots-
 
ok my xml document looks sumthing like this:

<?xml version=&quot;1.0&quot; ?>
<All_Letters>
<letter>the content of the letter
more content of the letter
still more content
</letter>
<letter>the content of the letter
more content of the letter
still more content
</letter>
<All_Letters>

Now in my html doc i display it like so:

<p><SPAN DATASRC='#xmldso' DATAFLD=&quot;letter&quot;></SPAN></p>

What i wana do is add an attribute to each letter element that distinguishes it from the others.
So if i added the attribute no=&quot;1&quot; to the elements, i might only wana display the letter that is no=&quot;5&quot;. i hope i clarified myself.
can this be done the way i want it to?
any help would be appreciated,
thanx
-Mon3y is the r00t of all evil and every man needs roots-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top