{"id":902,"date":"2005-10-22T02:36:00","date_gmt":"2005-10-22T02:36:00","guid":{"rendered":"\/blogs\/bobb\/post\/SQL-Server-200x-wish-list-part-2-XML-and-XQuery.aspx"},"modified":"2005-10-22T02:36:00","modified_gmt":"2005-10-22T02:36:00","slug":"sql-server-200x-wish-list-part-2-xml-and-xquery","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/bobb\/sql-server-200x-wish-list-part-2-xml-and-xquery\/","title":{"rendered":"SQL Server 200x wish list &#8211; part 2, XML and XQuery"},"content":{"rendered":"<p>\nOK, because it was Michael that asked originally, XML\/XQuery wishes for SQL Server 200x. In no particular order.\n<\/p>\n<p>\nFull compliance with &quot;standard&quot; W3C XQuery. If the standards committee finishes before SQL Server 200x ships. Else it will become a &quot;standard&quot; no one follows. Hmm&#8230;like SQL. Reason for this is twofold. <br \/>\n1. Folks who get a &quot;generic&quot; XQuery book at the store are now totally confused. Many give up after the third or fourth &quot;not supported&quot; message.<br \/>\n2. RCG (recent college grads) who may learn &quot;generic&quot; XQuery in college. There&#39;s a reason why C# looks somewhat like another popular programming language. Because it makes it&nbsp;easier to switch environments. And code.\n<\/p>\n<p>\nXQuery editor. That does schema or schemaless. Strong typing. Files or the SQL table row of your choice. They had a good start in the beta, but had to finish VS XML tools.\n<\/p>\n<p>\nClient side XQuery. How can I write code that might run on server or client, when it can&#39;t run on the client? XLINQ is nice, but it&#39;s not a substitute. Should be compatible with server, modulo input and ouput.\n<\/p>\n<p>\nOutput in encodings other than UTF-16. A CONVERT with extra parm, like DATETIME has.\n<\/p>\n<p>\nFull support for XSD schema productions. Yes, I know that its techinically outrageous. But its another source of confusion\/frustration. Get an industry standard schema (even Office 2003 schemas). Can&#39;t store it without changing &quot;lax&quot; to &quot;skip&quot;. But then its not the same schema if I change it.\n<\/p>\n<p>\nStandard grammer for composition and decomposition. Now, I&#39;m a big fan of SELECT&#8230;FOR XML. It&#39;s easier and more powerful than the alternative. But let&#39;s talk conversions again. Just layer on XmlElement(), XmlAttribute, etc. Kind of like CAST vs CONVERT in TSQL, they implement both.\n<\/p>\n<p>\nA XML.validate method.\n<\/p>\n<p>\nA more powerful modify method. But again, this could wait (but not long) for the W3C. Most people don&#39;t know that modify IS based on a standard proposal. But XDR and XML Patterns were proposals too. So maybe implement &quot;update&quot; (in addition to insert, replace value of, and delete) for next time. Bet SQL Server is finished before W3C. Multiple node inserts\/updates\/replace value ofs.\n<\/p>\n<p>\nXQuery collection() semantics over rows in a table. That could be considered a collection.\n<\/p>\n<p>\nXQuery 1.0 and XPath 2.0 data model (or ANSI SQL 200x data model) support. They&#39;re relatively close now.\n<\/p>\n<p>\nFOR XML works with UDTs.\n<\/p>\n<p>\nAbility to specify DOCUMENT on well-formed data. Like it works on schema-valid. This is a nit, I can do my own constraint. Arguably.\n<\/p>\n<p>\nFinally, Node-level locking or Node-level versioning. Yes, I know. Technically outrageous. But it IS a WISH list after all.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OK, because it was Michael that asked originally, XML\/XQuery wishes for SQL Server 200x. In no particular order. Full compliance with &quot;standard&quot; W3C XQuery. If the standards committee finishes before SQL Server 200x ships. Else it will become a &quot;standard&quot; no one follows. Hmm&#8230;like SQL. Reason for this is twofold. 1. Folks who get a [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,37],"tags":[],"class_list":["post-902","post","type-post","status-publish","format-standard","hentry","category-sql-server-2005","category-sql-server-xml"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.9.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SQL Server 200x wish list - part 2, XML and XQuery - Bob Beauchemin<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlskills.com\/blogs\/bobb\/sql-server-200x-wish-list-part-2-xml-and-xquery\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL Server 200x wish list - part 2, XML and XQuery - Bob Beauchemin\" \/>\n<meta property=\"og:description\" content=\"OK, because it was Michael that asked originally, XML\/XQuery wishes for SQL Server 200x. In no particular order. Full compliance with &quot;standard&quot; W3C XQuery. If the standards committee finishes before SQL Server 200x ships. Else it will become a &quot;standard&quot; no one follows. Hmm&#8230;like SQL. Reason for this is twofold. 1. Folks who get a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/bobb\/sql-server-200x-wish-list-part-2-xml-and-xquery\/\" \/>\n<meta property=\"og:site_name\" content=\"Bob Beauchemin\" \/>\n<meta property=\"article:published_time\" content=\"2005-10-22T02:36:00+00:00\" \/>\n<meta name=\"author\" content=\"Bob Beauchemin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bob Beauchemin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/sql-server-200x-wish-list-part-2-xml-and-xquery\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/sql-server-200x-wish-list-part-2-xml-and-xquery\/\",\"name\":\"SQL Server 200x wish list - part 2, XML and XQuery - Bob Beauchemin\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website\"},\"datePublished\":\"2005-10-22T02:36:00+00:00\",\"dateModified\":\"2005-10-22T02:36:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/sql-server-200x-wish-list-part-2-xml-and-xquery\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/bobb\/sql-server-200x-wish-list-part-2-xml-and-xquery\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/sql-server-200x-wish-list-part-2-xml-and-xquery\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL Server 2005\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/category\/sql-server-2005\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"SQL Server 200x wish list &#8211; part 2, XML and XQuery\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/\",\"name\":\"Bob Beauchemin\",\"description\":\"SQL Server Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e\",\"name\":\"Bob Beauchemin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g\",\"caption\":\"Bob Beauchemin\"},\"sameAs\":[\"http:\/www.sqlskills.com\/blogs\/bobb\/\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/author\/bobb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQL Server 200x wish list - part 2, XML and XQuery - Bob Beauchemin","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqlskills.com\/blogs\/bobb\/sql-server-200x-wish-list-part-2-xml-and-xquery\/","og_locale":"en_US","og_type":"article","og_title":"SQL Server 200x wish list - part 2, XML and XQuery - Bob Beauchemin","og_description":"OK, because it was Michael that asked originally, XML\/XQuery wishes for SQL Server 200x. In no particular order. Full compliance with &quot;standard&quot; W3C XQuery. If the standards committee finishes before SQL Server 200x ships. Else it will become a &quot;standard&quot; no one follows. Hmm&#8230;like SQL. Reason for this is twofold. 1. Folks who get a [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/sql-server-200x-wish-list-part-2-xml-and-xquery\/","og_site_name":"Bob Beauchemin","article_published_time":"2005-10-22T02:36:00+00:00","author":"Bob Beauchemin","twitter_misc":{"Written by":"Bob Beauchemin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/sql-server-200x-wish-list-part-2-xml-and-xquery\/","url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/sql-server-200x-wish-list-part-2-xml-and-xquery\/","name":"SQL Server 200x wish list - part 2, XML and XQuery - Bob Beauchemin","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website"},"datePublished":"2005-10-22T02:36:00+00:00","dateModified":"2005-10-22T02:36:00+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/sql-server-200x-wish-list-part-2-xml-and-xquery\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/bobb\/sql-server-200x-wish-list-part-2-xml-and-xquery\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/sql-server-200x-wish-list-part-2-xml-and-xquery\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/bobb\/"},{"@type":"ListItem","position":2,"name":"SQL Server 2005","item":"https:\/\/www.sqlskills.com\/blogs\/bobb\/category\/sql-server-2005\/"},{"@type":"ListItem","position":3,"name":"SQL Server 200x wish list &#8211; part 2, XML and XQuery"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/","name":"Bob Beauchemin","description":"SQL Server Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/bobb\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e","name":"Bob Beauchemin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g","caption":"Bob Beauchemin"},"sameAs":["http:\/www.sqlskills.com\/blogs\/bobb\/"],"url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/author\/bobb\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts\/902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/comments?post=902"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts\/902\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/media?parent=902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/categories?post=902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/tags?post=902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}