XPATH problem
-
Hi guys, I have a xml document as below and in Xslt I need to get the person name on the basis of email id as in below xml file , contributor node contain email id and associated name is included in Epic node can any body help me to get the name for each contributor through xpath? <ONIXMessage> <Product> <Contributor> <Email>Rohit@gmail.com</Email> </Contributor> </Product> <Product> <Contributor> <Email>Rohit@gmail.com</Email> </Contributor> </Product> <Epic> <Person> <Name>Rohit</Name> <Email>Rohit@gmail.com</Email> </Person> </Epic> </ONIXMessage>
-
Hi guys, I have a xml document as below and in Xslt I need to get the person name on the basis of email id as in below xml file , contributor node contain email id and associated name is included in Epic node can any body help me to get the name for each contributor through xpath? <ONIXMessage> <Product> <Contributor> <Email>Rohit@gmail.com</Email> </Contributor> </Product> <Product> <Contributor> <Email>Rohit@gmail.com</Email> </Contributor> </Product> <Epic> <Person> <Name>Rohit</Name> <Email>Rohit@gmail.com</Email> </Person> </Epic> </ONIXMessage>
Rohit16db wrote:
person name on the basis of email id as in below xml
Why Duplicate entry for Product->contributor->Email XSLT is used to transform your xml into XHTML. You can easily move into some node decendant to the current one using XPath. Tell me what exactly you require. See http://www.w3schools.com/xsl/[^] for reference.
Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript