XML-JSON

How to work with xml type using Query

OPENXML, a Transact-SQL keyword, provides a rowset over in-memory XML documents that is similar to a table or a view. sp_xml_preparedocument. This parses the XML document and returns a handle to the parsed document that is ready for consumption.  Example: Using nodes() Example: Using OpenXml() on the xml Data Type Using Cross Apply References: https://docs.microsoft.com/en-us/sql/relational-databases/xml/openxml-sql-server?view=sql-server-ver15