Parsing XML with namespaces in SQL Server
问题 I am having a hard time trying to parse an XML that has some namespaces defined: <TravelItineraryReadRS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="2.2.0"> <TravelItinerary xmlns="http://webservices.sabre.com/sabreXML/2011/10"> <CustomerInfo> <PersonName WithInfant="false" NameNumber="01.01" RPH="1"> <GivenName>JEFF S</GivenName>" The XMl is stored in an XML type column named response, and I want to get the GivenName value, for