[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

distinct xml

  • To: xml-dev@l...
  • Subject: distinct xml
  • From: sreedhar kumar <avsreedhar@y...>
  • Date: Wed, 26 Oct 2005 22:03:17 -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=5ZQfdHst/4ENJmQKWHU3QiWDjSYHV+aXPS96GnGvIyOKz7SFicwQghRzI20Dqrr2cIAS8t7Nsv4LL6hAy95BqOh5nvjr2v7l/d5v1wKTFxB6ra0AaxtUiT4QV6x3Vd6Jj+WBq5j4dpfqJoKmkc/ZHcD1dexjkV7NFsbUyFMbjho= ;

distinct xml
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>
</account>

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! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.