{"id":74,"date":"2012-11-01T17:16:00","date_gmt":"2012-11-01T22:16:00","guid":{"rendered":"https:\/\/www.chrystalsander.com\/blog\/?p=74"},"modified":"2023-07-26T12:37:52","modified_gmt":"2023-07-26T17:37:52","slug":"sql-server-use-xquery-on-xml-data-types","status":"publish","type":"post","link":"https:\/\/www.chrystalsander.com\/blog\/?p=74","title":{"rendered":"SQL Server :  Use XQuery On XML Data Types"},"content":{"rendered":"<div>\n<div>\n<div style=\"margin-top: 8.65pt; mso-margin-bottom-alt: auto;\">\n<span style=\"color: #404040; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; font-size: 10.0pt;\">XQuery is to XML what SQL is to database tables.&nbsp;&nbsp; XQuery is designed to query XML data &#8211; not just XML files, but anything that can appear as XML, including databases.&nbsp; In SQL Server, there are five methods that you can use to speed up your xquery to a column of type \u201cxml:\u201d&nbsp; query(), value(), exist(), modify(), and nodes().&nbsp; I\u2019ll cover the first, and most commonly used, three.<o:p><\/o:p><\/span><\/div>\n<div style=\"margin-top: 8.65pt; mso-margin-bottom-alt: auto;\">\n<span style=\"color: #404040; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;; font-size: 10.0pt;\">For the purpose of this example, I will use the following sample xml in field \u201cXmlField :\u201d<o:p><\/o:p><\/span><\/div>\n<div>\n<\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&lt;<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">msg<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp; &lt;<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">head<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;&nbsp;&nbsp; <o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&lt;<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">Id<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">X9356G356Y<span style=\"color: blue;\">&lt;\/<\/span><span style=\"color: #a31515;\">Id<\/span><span style=\"color: blue;\">&gt;<o:p><\/o:p><\/span><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp; &lt;\/<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">head<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp; &lt;<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">body<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp;&nbsp;&nbsp; &lt;<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">ReturnedResponse<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">Response<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">ReturnCode<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">0<span style=\"color: blue;\">&lt;\/<\/span><span style=\"color: #a31515;\">ReturnCode<\/span><span style=\"color: blue;\">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p><\/o:p><\/span><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">Message<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">SUCCESS<span style=\"color: blue;\">&lt;\/<\/span><span style=\"color: #a31515;\">Message<\/span><span style=\"color: blue;\">&gt;<o:p><\/o:p><\/span><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">Response<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;&nbsp;&nbsp;&nbsp;&nbsp; <o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">Customer<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp; &nbsp;&lt;<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10pt;\">CustomerId<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10pt;\">&gt;<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10pt;\">CID459283<span style=\"color: blue;\">&lt;\/<\/span><span style=\"color: #a31515;\">CustomerId<\/span><span style=\"color: blue;\">&gt;<\/span><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">State<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">NV<span style=\"color: blue;\">&lt;\/<\/span><span style=\"color: #a31515;\">State<\/span><span style=\"color: blue;\">&gt;<o:p><\/o:p><\/span><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp;&lt;<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">Name<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<\/span><\/br><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10pt;\">&nbsp; &lt;<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10pt;\">FirstLast<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10pt;\">&gt;<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10pt;\">Name1_Name2&nbsp;<span style=\"color: blue;\">&lt;\/<\/span><span style=\"color: #a31515;\">FirstLast<\/span><span style=\"color: blue;\">&gt;<\/span><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">Name<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">Customer<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp;&nbsp;&nbsp; &lt;\/<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">ReturnedResponse<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp; &lt;\/<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">body<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<o:p><\/o:p><\/span><\/div>\n<div>\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&lt;\/<\/span><span style=\"color: #a31515; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">msg<\/span><span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&gt;<o:p><\/o:p><\/span><\/div>\n<div>\n<\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: green; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&#8211;XPATH Examples<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: green; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&#8211;.value<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">SELECT<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp; A<span style=\"color: grey;\">.<\/span>TransDate<span style=\"color: grey;\">,<\/span> A<span style=\"color: grey;\">.<\/span>MainId<span style=\"color: grey;\">,<o:p><\/o:p><\/span><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">XmlField<span style=\"color: grey;\">.<\/span>value<span style=\"color: grey;\">(<\/span><span style=\"color: red;\">&#8216;\/msg[1]\/body[1]\/ReturnedResponse[1]\/Customer[1]\/CustomerId[1]&#8217;<\/span><span style=\"color: grey;\">,<\/span> <span style=\"color: red;\">&#8216;VARCHAR(25)&#8217;<\/span><span style=\"color: grey;\">)<\/span> <span style=\"color: blue;\">as<\/span> xCustomerId<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">FROM<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\"> TABLE2 B <span style=\"color: blue;\">WITH <\/span><span style=\"color: grey;\">(<\/span><span style=\"color: blue;\">NOLOCK<\/span><span style=\"color: grey;\">)<o:p><\/o:p><\/span><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: grey; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">INNER<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\"> <span style=\"color: grey;\">JOIN<\/span> TABLE1 A <span style=\"color: blue;\">WITH <\/span><span style=\"color: grey;\">(<\/span><span style=\"color: blue;\">NOLOCK<\/span><span style=\"color: grey;\">)<\/span> <span style=\"color: blue;\">ON<\/span> B<span style=\"color: grey;\">.<\/span>APk <span style=\"color: grey;\">=<\/span> A<span style=\"color: grey;\">.<\/span>MainId<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">WHERE<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">A<span style=\"color: grey;\">.<\/span>MainId <span style=\"color: grey;\">=<\/span> <span style=\"color: red;\">&#8216;HI05491882&#8217;<\/span><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: green; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&#8211;.exist<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">SELECT<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&nbsp; A<span style=\"color: grey;\">.<\/span>TransDate<span style=\"color: grey;\">,<\/span> A<span style=\"color: grey;\">.<\/span>MainId<span style=\"color: grey;\">,<o:p><\/o:p><\/span><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">XmlField<span style=\"color: grey;\">.<\/span>value<span style=\"color: grey;\">(<\/span><span style=\"color: red;\">&#8216;\/msg[1]\/body[1]\/ReturnedResponse[1]\/Customer[1]\/CustomerId[1]&#8217;<\/span><span style=\"color: grey;\">,<\/span> <span style=\"color: red;\">&#8216;VARCHAR(25)&#8217;<\/span><span style=\"color: grey;\">)<\/span> <span style=\"color: blue;\">as<\/span> xCustomerId<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">FROM<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\"> TABLE2 B <span style=\"color: blue;\">WITH <\/span><span style=\"color: grey;\">(<\/span><span style=\"color: blue;\">NOLOCK<\/span><span style=\"color: grey;\">)<o:p><\/o:p><\/span><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: grey; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">INNER<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\"> <span style=\"color: grey;\">JOIN<\/span> TABLE1 A <span style=\"color: blue;\">WITH <\/span><span style=\"color: grey;\">(<\/span><span style=\"color: blue;\">NOLOCK<\/span><span style=\"color: grey;\">)<\/span> <span style=\"color: blue;\">ON<\/span> B<span style=\"color: grey;\">.<\/span>APk <span style=\"color: grey;\">=<\/span> A<span style=\"color: grey;\">.<\/span>MainId<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">WHERE<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">A<span style=\"color: grey;\">.<\/span>MainId <span style=\"color: grey;\">=<\/span> <span style=\"color: red;\">&#8216;HI05491882&#8217;<o:p><\/o:p><\/span><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: grey; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">AND<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\"> XmlField<span style=\"color: grey;\">.<\/span>exist<span style=\"color: grey;\">(<\/span><span style=\"color: red;\">&#8216;\/msg\/body\/ReturnedResponse\/Customer\/CustomerId&#8217;<\/span><span style=\"color: grey;\">)<\/span> <span style=\"color: grey;\">=<\/span> 1<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: green; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">&#8211;.query<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">SELECT<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\"> XmlField<span style=\"color: grey;\">.<\/span>query<span style=\"color: grey;\">(<\/span><span style=\"color: red;\">&#8216;\/msg\/body\/ReturnedResponse\/Customer\/CustomerId&#8217;<\/span><span style=\"color: grey;\">)<o:p><\/o:p><\/span><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">FROM<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\"> TABLE2 B <span style=\"color: blue;\">WITH <\/span><span style=\"color: grey;\">(<\/span><span style=\"color: blue;\">NOLOCK<\/span><span style=\"color: grey;\">)<o:p><\/o:p><\/span><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: grey; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">INNER<\/span><span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\"> <span style=\"color: grey;\">JOIN<\/span> TABLE1 A <span style=\"color: blue;\">WITH <\/span><span style=\"color: grey;\">(<\/span><span style=\"color: blue;\">NOLOCK<\/span><span style=\"color: grey;\">)<\/span> <span style=\"color: blue;\">ON<\/span> B<span style=\"color: grey;\">.<\/span>APk <span style=\"color: grey;\">=<\/span> A<span style=\"color: grey;\">.<\/span>MainId<o:p><\/o:p><\/span><\/div>\n<div style=\"text-autospace: none;\">\n<span style=\"color: blue; font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">WHERE<o:p><\/o:p><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;Courier New&quot;; font-size: 10.0pt;\">A<span style=\"color: grey;\">.<\/span>MainId <span style=\"color: grey;\">=<\/span> <span style=\"color: red;\">&#8216;HI05491882&#8217;<\/span><span style=\"color: blue;\"><o:p><\/o:p><\/span><\/span><\/div>\n<div>\n<\/div>\n<div>\n<\/div>\n<div>\n<\/div>\n<\/div>\n<p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>XQuery is to XML what SQL is to database tables.&nbsp;&nbsp; XQuery is designed to query XML data &#8211; not just XML files, but anything that can appear as XML, including databases.&nbsp; In SQL Server, there are five methods that you can use to speed up your xquery to a column of type \u201cxml:\u201d&nbsp; query(), value(), &hellip; <a href=\"https:\/\/www.chrystalsander.com\/blog\/?p=74\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;SQL Server :  Use XQuery On XML Data Types&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,34],"tags":[50],"_links":{"self":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/74"}],"collection":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=74"}],"version-history":[{"count":1,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/74\/revisions"}],"predecessor-version":[{"id":192,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/74\/revisions\/192"}],"wp:attachment":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}