473,508 Members | 2,152 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML duplicates using Javascirpt need help!!

1 New Member
ok Here is a snippet of my xml file:

Expand|Select|Wrap|Line Numbers
  1. <Holidays>
  2.         <Data>
  3.             <Month>August</Month>
  4.             <Day>2</Day>
  5.             <Holiday>Virgin of the Angels Day</Holiday>
  6.             <Country>(CR)</Country>
  7.             <Year>2006</Year>
  8.         </Data>
  9.         <Data>
  10.             <Month>August</Month>
  11.             <Day>3</Day>
  12.             <Holiday>Fast Tishaa Beav</Holiday>
  13.             <Country>(ISR)</Country>
  14.             <Year>2006</Year>
  15.         </Data>
  16.                                 <Data>
  17.             <Month>August</Month>
  18.             <Day>3</Day>
  19.             <Holiday>Fast Tishaa Beav</Holiday>
  20.             <Country>(ISR)</Country>
  21.             <Year>2006</Year>
  22.         </Data>
  23.                                  <Data>
  24.             <Month>August</Month>
  25.             <Day>3</Day>
  26.             <Holiday>Fast Tishaa Beav</Holiday>
  27.             <Country>(ISR)</Country>
  28.             <Year>2006</Year>
  29.         </Data>
  30. </Holidays>
as you can see its simply an xml file full of holidays,days,country,month, and year.

A user selects a month from a drop down list (such as august) and then all teh holidays in that month should appear. Ok now the challenge, I do not want the duplicate holidays to print out.

Im using an xpath way to do it, like this:
Expand|Select|Wrap|Line Numbers
  1. nodes = xmlDoc.selectNodes("xpath expression here");
How do I NOT print out the duplicate holidays?
Sep 11 '06 #1
0 1047

Sign in to post your reply or Sign up for a free account.

Similar topics

6
2003
by: Jani Yusef | last post by:
I have a HW problem stated as shown at the top of the solution. The thing is is that I am not 100% sure wtf constant memory means. Well, I think I do but I am confused. Does my solution use contant...
4
1954
by: MARTIN DAVIES | last post by:
I hope you can help. My Linux MYSQL 3.23.52 database server is working OK generally. However, in a database I have a field name that ends with a # (hash UK as opposed to £ which is a pound UK)...
7
3287
by: Timothy Shih | last post by:
Hi, I am trying to figure out how to use unmanaged code using P/Invoke. I wrote a simple function which takes in 2 buffers (one a byte buffer, one a char buffer) and copies the contents of the byte...
0
2044
by: Cause | last post by:
In the following code to call my website for serial registration reasons, I want to test on localhost. The code works on the internet, but this code sends me a bunch of 400 bad request errors when I...
1
1325
by: soft_devjava | last post by:
my environment: =========================== -php ver 5.2.0 -mysql 5 -windows xp -apache 2 -all of these are on the same machine my code: ==========================
3
2073
by: ssghill | last post by:
Okay all i'm new to the asp portion but fairly good with vbscript. My problem is that I am trying to us an asp page to enumerate an ou. The problem is when I us localhoston the intranet web...
5
2798
by: Richard Gromstein | last post by:
Hello, I have an exercise that I need to finish very soon and I really need help understanding what to do and how exactly to do it. I am working on reading the chapter right now and working on it...
3
1231
George Lft
by: George Lft | last post by:
<?php //beginning tag $host = "localhost"; $dbuser = "root"; $dbpass = ""; $connection = mysql_connect($host,$dbuser,$dbpass); $dbname = "tutorial"; $db = mysql_select_db($dbname); //grab...
3
2340
allingame
by: allingame | last post by:
Need help with append and delete duplicates I have tables namely 1)emp, 2)time and 3)payroll TABLE emp ssn text U]PK name text
0
7124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7385
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3195
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1558
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.