XQuery in SQL 2012: .exist with multiple criteria

How do you code in XQuery (SQL 2012) to do an .exist with multiple criteria?

Given the below XML..
Declare @x xml = '
<row ParentID="45" ObjectID="0" Node="root.local.navigation[7]" itemKey="page" itemValue="Confirmation" itemType="string" />
<row ParentID="45" ObjectID="0" Node="root.local.navigation[7]" itemKey="visited" itemValue="false" itemType="bool" />'

Open in new window

These two criteria work fine when queried individually...
SELECT @x.exist('/row[@Node eq "root.local.navigation[7]"]')
SELECT @x.exist('/row[@itemValue eq "Confirmation"]')

Open in new window

But when I combine them below it returns errmsg 'XQuery [exist()]: The XQuery syntax 'union' is not supported.'
SELECT @x.exist('/row[@Node eq "root.local.navigation[7]"] | /row[@itemValue eq "Confirmation"]')

Open in new window

Thanks in advance.
LVL 67
Jim HornMicrosoft SQL Server Data DudeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Data DudeAuthor Commented:
Received the answer from an outside source ...
SELECT @x.exist('/row[@Node eq "root.local.navigation[7]" and@itemValue eq "Confirmation"]')

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
XML

From novice to tech pro — start learning today.