Skip to content
Advertisement

SQL Server : select attribute from xml where attribute name is defined by namespace

I couldnt find anything specifically on this, but I would like to know how I can select an attribute of a sub-node in XML that is identified by a namespace, asp per the XLINK namespace below:

Currently my query looks like this, but I just need a small alteration in order to get the link.

Advertisement

Answer

Replace the xlink:href with xlinkhref

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement