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 July 26th, 2004, 10:00 AM
r0tt r0tt is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 1 r0tt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Understanding the <span datafld="value"> stuff

Needless to say I am new to XML programming and appreciate any pointers.

Here's what I have so far. I have a table with a datasrc="#xmldso_list". I am then putting the values from the XML file to the table like this:


<td ><span datafld="v1"></span></td>
<td ><span datafld="v2"></span></td>

...
<td ><span datafld="v7"></span></td>

That works fine, and dynamically generates a table displaying XML content. Here's what I am trying to do. The v1 values are the names, for instances RED, BLUE, GREEN, etc... I may have several rows of the same name, looking like this:

-----------------------
RED xxx xxx xxxxx xxx
RED xxx xxx xxxxx xxx
BLUE xx xxx xxxxx xxx
BLUE xx xxx xxxxx xxx
BLUE xx xxx xxxxx xxx
GREEN x xx xxxx xxx

What I want to do is to place a separation between the rows as the name changes, as this:

-----------------------
RED xxx xxx xxxxx xxx
RED xxx xxx xxxxx xxx
-----------------------
BLUE xx xxx xxxxx xxx
BLUE xx xxx xxxxx xxx
BLUE xx xxx xxxxx xxx
-----------------------
GREEN x xx xxxx xxx

How could I check to see if the v1 in the previous row is different, and insirt a separator line?

Many thanks for your help!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Understanding the <span datafld="value"> stuff


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 3 hosted by Hostway
Stay green...Green IT