XPATH "OR" statement

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
cocosteelAsked:
Who is Participating?
 
Carl TawnSystems and Integration DeveloperCommented:
/MyDocument/Address/*[name() = 'AddressLine' or name()='InternationalAddressLine'][1]
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.