Solved

XPATH "OR" statement

Posted on 2006-06-23
1
1,197 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 190 total points
ID: 16967579
/MyDocument/Address/*[name() = 'AddressLine' or name()='InternationalAddressLine'][1]
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Read XML Response From ASP Classic 9 57
API Soap Calls 4 62
How to read XML file attributes... 17 42
XML to SQL Table using c# 5 47
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now