Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

XPATH "OR" statement

Posted on 2006-06-23
1
Medium Priority
?
1,212 Views
Last Modified: 2009-07-29
hi

here is my xpath at the moment

/MyDocument/Address/*[name() = 'AddressLine'][1]

this gets me the 1st address line out of my xml document

i want to now say get me the 1st address line where the name is equal to "AddressLine" OR "InternationalAddressLine"

how do i do this

thanks very much
0
Comment
Question by:cocosteel
1 Comment
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 760 total points
ID: 16967579
/MyDocument/Address/*[name() = 'AddressLine' or name()='InternationalAddressLine'][1]
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question