473,382 Members | 1,238 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

selecting element value from repeatable nodes of same type

ReceiptDesc>

<Receipt>

po_nbr>123</po_nbr>

ReceiptDtl>

<receipt_date>

<year>1978</year>

<month>3</month>

<day>5</day>

<hour>1</hour>

<minute>6</minute>

<second>3</second>

</receipt_date>

<receipt_nbr>26</receipt_nbr>

</ReceiptDtl>

<ReceiptDtl>

<receipt_date>

<year>1979</year>

<month>3</month>

<day>5</day>

<hour>1</hour>

<minute>6</minute>

<second>3</second>

</receipt_date>

<receipt_nbr>26</receipt_nbr>

</ReceiptDtl>

<ReceiptDtl>

<receipt_date>

<year>1980</year>

<month>3</month>

<day>5</day>

<hour>1</hour>

<minute>6</minute>

<second>3</second>

</receipt_date>

<receipt_nbr>27</receipt_nbr>

</ReceiptDtl>

<ReceiptDtl>

<receipt_date>

<year>1978</year>

<month>3</month>

<day>5</day>

<hour>1</hour>

<minute>6</minute>

<second>3</second>

</receipt_date>

<receipt_nbr>28</receipt_nbr>

</ReceiptDtl>

</Receipt>

</ReceiptDesc>



IN the above scenario for a po_nbr we have some receipts and each receipt have multiple ReceiptDtls and some ReceiptDtls have same receipt_nbr the problem is if receipt_nbr is same we have to take the last receipt_date how can we do that



Here we have receipt_nbr=26 but the receipt_date is diff we need to take 1979 not 1978 how to do that
Jun 29 '07 #1
1 1254
Dököll
2,364 Expert 2GB
Are you using XSL to read this?
Jul 4 '07 #2

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

Similar topics

1
by: Alastair Cameron | last post by:
VB6, MSXML 3.2 installed: Q1. I am having a problem selecting nodes with XPATH expressions when an attribute values contain backslashes (\\) in as part of its value: For example the...
2
by: Mike Kamermans | last post by:
I'm having some trouble using text() in an xsl:value-of xpath. I have the following xml: .... <graphemes> <grapheme>1</grapheme> <grapheme>2</grapheme> <grapheme>3</grapheme> </graphemes>...
12
by: Lawrence Oluyede | last post by:
I've some problems with filtering out a specific element by the following xml snippet (is part of a bigger xml document): <entry> <link...
1
by: pjeung | last post by:
Say that I have an element <elementA> that has several layers of subelements. In System.Xml.XmlDocument and related classes, how do I rename <elementA> to <elementB> leaving the subelements intact?
2
by: Marc Jennings | last post by:
Hi there, I have been given a rather poor schema for an XML file in the following format : ><item> > <key>ProductCode</key> > <value>1234-5678</value> > <key>Description</key> >...
4
by: darrel | last post by:
I've done a bit of transoforming XML in ASP.net by passing it to an XSL file and returning the results. I'm not trying to navigate an XML file and just return one value. I could use XSL for...
2
by: areef.islam | last post by:
Hi, I am kinda new to javascript and I am having this problem with selecting multiple options from a select tag. Hope someone can help me out here. here is my code...
14
by: hgraham | last post by:
Hi, I'm trying to understand how to work the dom, and all I'm trying to do is insert a link right before another link in the html based on it's href value. This isn't a real world example - I'm...
1
by: jdhcards | last post by:
Hello, I've been banging my head against a problem all day without a solution, and I'm hoping you all can help. I've got a piece of XML that defines a set of elements in a flat list. Each of...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.