Skip to content

Commit fea4e7d

Browse files
committed
Learn Editor: Update example-querying-xmltype-columns.md
1 parent 4ffb643 commit fea4e7d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/relational-databases/xml/example-querying-xmltype-columns.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ helpviewer_keywords:
1212
author: MikeRayMSFT
1313
ms.author: mikeray
1414
---
15+
1516
# Example: Query XMLType columns
1617

1718
[!INCLUDE [SQL Server Azure SQL Database Azure SQL Managed Instance](../../includes/applies-to-version/sql-asdb-asdbmi.md)]
@@ -72,12 +73,13 @@ This is the result:
7273

7374
The following query specifies the `ELEMENTS` directive. Therefore, the result returned is element-centric. The `XSINIL` option specified with the `ELEMENTS` directive returns the `<ManuSteps>` elements, even if the corresponding column in the rowset is NULL.
7475

76+
7577
```sql
7678
USE AdventureWorks2012;
7779
GO
7880
SELECT ProductModelID, Name,
7981
Instructions.query('
80-
declare namespace MI="https://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ProductModelManuInstructions"
82+
declare namespace MI="http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/ProductModelManuInstructions"
8183
/MI:root/MI:Location[1]/MI:step
8284
') as ManuSteps
8385
FROM Production.ProductModel
@@ -110,3 +112,4 @@ This is the result:
110112
## See also
111113

112114
- [Use RAW Mode with FOR XML](../../relational-databases/xml/use-raw-mode-with-for-xml.md)
115+

0 commit comments

Comments
 (0)