Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Grouping

Reply
Thread Tools

Grouping

 
 
Mike King
Guest
Posts: n/a
 
      11-15-2005
How can I process nodes at the same time? In other words, in the example
below I want to process the "t-r" elements and it's child nodes in groups of
two. These groups are going to end up being MS Excel Worksheets.

<?xml version="1.0"?>
<root>
<t-r date-time="11-14-2005 12:29:38" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:29:38" temperature="25C" />
<t-r date-time="11-14-2005 12:44:21" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:44:21" temperature="25C" />
<t-r date-time="11-14-2005 12:46:02" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:46:02" temperature="25C" />
</root>


group 1:
<t-r date-time="11-14-2005 12:29:38" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:29:38" temperature="25C" />

group 2:
<t-r date-time="11-14-2005 12:44:21" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:44:21" temperature="25C" />

group 3:
<t-r date-time="11-14-2005 12:46:02" temperature="25C" path="X2-X3" />
<t-r date-time="11-14-2005 12:46:02" temperature="25C" />


 
Reply With Quote
 
 
 
 
Mike King
Guest
Posts: n/a
 
      11-15-2005
"Mike King" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How can I process nodes at the same time? In other words, in the example
> below I want to process the "t-r" elements and it's child nodes in groups
> of two. These groups are going to end up being MS Excel Worksheets.
>
> <?xml version="1.0"?>
> <root>
> <t-r date-time="11-14-2005 12:29:38" temperature="25C" path="X2-X3" />
> <t-r date-time="11-14-2005 12:29:38" temperature="25C" />
> <t-r date-time="11-14-2005 12:44:21" temperature="25C" path="X2-X3" />
> <t-r date-time="11-14-2005 12:44:21" temperature="25C" />
> <t-r date-time="11-14-2005 12:46:02" temperature="25C" path="X2-X3" />
> <t-r date-time="11-14-2005 12:46:02" temperature="25C" />
> </root>
>
>
> group 1:
> <t-r date-time="11-14-2005 12:29:38" temperature="25C" path="X2-X3" />
> <t-r date-time="11-14-2005 12:29:38" temperature="25C" />
>
> group 2:
> <t-r date-time="11-14-2005 12:44:21" temperature="25C" path="X2-X3" />
> <t-r date-time="11-14-2005 12:44:21" temperature="25C" />
>
> group 3:
> <t-r date-time="11-14-2005 12:46:02" temperature="25C" path="X2-X3" />
> <t-r date-time="11-14-2005 12:46:02" temperature="25C" />



Sorry. I found the answer.

http://sources.redhat.com/ml/xsl-lis.../msg00058.html


 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Message grouping John Thompson Firefox 1 03-27-2005 12:01 AM
Grouping the replys in Mozilla? Benjamin P. Firefox 11 04-15-2004 04:46 AM
cisco switch 3350 not capable of network-layer grouping VLAN membership ? ike lozada Cisco 10 02-03-2004 12:12 AM
Port Grouping and Trunking problem hari Cisco 7 01-07-2004 09:01 AM
Re: Grouping & The DataGrid or DataList or Repeater Control David Wier ASP .Net 0 08-08-2003 03:09 PM



Advertisments