OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   distinct xml

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: distinct xml
  • From: sreedhar kumar <avsreedhar@yahoo.com>
  • Date: Wed, 26 Oct 2005 22:02:52 -0700 (PDT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=uGIV4mx/e3ZFWIo6EdudU3cklT66mHhVNekF2VzAnCoU4XGprOel5r6vms89B7M9LNOsYQ9Fb/9arGLyQXGDAqvKC+T07z/9ysg7YtguMyajH3Zc2an4E4EcuB90ihwSo1AzRQMrx28q1YSUadl4ckGdqJbVTvkMjOZVuv+Ggdo= ;

Hi! all,
pls help me on this.

<acoount>
	<Hotel>
		<datime>12/09/2005 12:06:23</datime>
		<type>1</type>
		<paid><1000</paid>
		<DUR>22</DUR>
	</Hotel>
	<Hotel>
		<datime>12/09/2005 20:06:23</datime>
		<type>2</type>
		<paid><500</paid>
		<DUR>25</DUR>
	</Hotel>
	<Hotel>
		<datime>13/03/2005 12:06:23</datime>
		<type>1</type>
		<paid><1200</paid>
		<DUR>32</DUR>
	</Hotel>
	<Hotel>
		<datime>16/09/2005 22:56:23</datime>
		<type>1</type>
		<paid><1000</paid>
		<DUR>15</DUR>
	</Hotel>
	<Hotel>
		<datime>17/09/2005 12:56:51</datime>
		<type>2</type>
		<paid><1500</paid>
		<DUR>19</DUR>
	</Hotel>
	<Hotel>
		<datime>17/09/2005 12:06:23</datime>
		<type>1</type>
		<paid><1000</paid>
		<DUR>12</DUR>
	</Hotel>
	<Hotel>
		<datime>18/09/2005 19:06:23</datime>
		<type>1</type>
		<paid><1320</paid>
		<DUR>32</DUR>
	</Hotel>
	<Hotel>
		<datime>18/09/2005 12:06:23</datime>
		<type>2</type>
		<paid><400</paid>
		<DUR>24</DUR>
	</Hotel>
	<Hotel>
		<datime>22/09/2005 12:16:23</datime>
		<type>1</type>
		<paid><1000</paid>
		<DUR>20</DUR>
	</Hotel>
	<Hotel>
		<datime>22/09/2005 12:06:23</datime>
		<type>2</type>
		<paid><550</paid>
		<DUR>31</DUR>
	</Hotel>
	<Hotel>
		<datime>23/09/2005 12:06:23</datime>
		<type>1</type>
		<paid><1000</paid>
		<DUR>32</DUR>
	</Hotel>
	<Hotel>
		<datime>25/09/2005 12:06:23</datime>
		<type>1</type>
		<paid><1000</paid>
		<DUR>27</DUR>
	</Hotel>
	<Hotel>
		<datime>25/09/2005 12:06:23</datime>
		<type>1</type>
		<paid><1000</paid>
		<DUR>17</DUR>
	</Hotel>

its a xml file. One guy used to go to hotel. He may go
twice also per a day. From this how we can find if
type='1' for day howmuch he paid. I have 2 disply for
every day howmuch he spent in hotel if type='1' and
the total duration when type='1' per day.
Cud u pls guide me how can I solve this.

Regards,
Sree.


	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS