{"id":406,"date":"2023-08-25T17:22:37","date_gmt":"2023-08-25T17:22:37","guid":{"rendered":"\/\/api.jquery.com\/?p=406"},"modified":"2024-04-20T18:07:15","modified_gmt":"2024-04-20T18:07:15","slug":"jQuery.isXMLDoc","status":"publish","type":"post","link":"https:\/\/api.jquery.com\/jQuery.isXMLDoc\/","title":{"rendered":"jQuery.isXMLDoc()"},"content":{"rendered":"<article id=\"jQuery-isXMLDoc1\" class=\"entry method\"><h2 class=\"section-title\">\n<span class=\"name\">jQuery.isXMLDoc( node )<\/span><span class=\"returns\">Returns: <a href=\"http:\/\/api.jquery.com\/Types\/#Boolean\">Boolean<\/a><\/span>\n<\/h2>\n<div class=\"entry-wrapper\">\n<p class=\"desc\"><strong>Description: <\/strong>Check to see if a DOM node is within an XML document (or is an XML document).<\/p>\n<ul class=\"signatures\"><li class=\"signature\">\n<h4 class=\"name\">\n<span class=\"version-details\">version added: <a href=\"\/category\/version\/1.1.4\/\">1.1.4<\/a><\/span><a id=\"jQuery-isXMLDoc-node\" href=\"#jQuery-isXMLDoc-node\"><span class=\"icon-link\"><\/span>jQuery.isXMLDoc( node )<\/a>\n<\/h4>\n<ul><li id=\"jQuery-isXMLDoc-node-node\">\n<div><strong>node<\/strong><\/div>\n<div>Type: <a href=\"http:\/\/api.jquery.com\/Types\/#Element\">Element<\/a>\n<\/div>\n<div>The DOM node that will be checked to see if it's in an XML document.<\/div>\n<\/li><\/ul>\n<\/li><\/ul>\n<section class=\"entry-examples\" id=\"entry-examples\"><header><h2>Example:<\/h2><\/header><div class=\"entry-example\" id=\"example-0\">\n<p>Check an object to see if it's in an XML document.<\/p>\n<div class=\"syntaxhighlighter javascript\">\n\t<table>\n\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t\n\t\t\t\t<td class=\"gutter\">\n\t\t\t\t\t\n\t\t\t\t\t\t<div class=\"line n1\">1<\/div>\n\t\t\t\t\t\n\t\t\t\t\t\t<div class=\"line n2\">2<\/div>\n\t\t\t\t\t\n\t\t\t\t<\/td>\n\t\t\t\t\n\t\t\t\t<td class=\"code\">\n\t\t\t\t\t<pre><div class=\"container\"><div class=\"line\"><code>jQuery.isXMLDoc( <span class=\"hljs-built_in\">document<\/span> ) <span class=\"hljs-comment\">\/\/ false<\/span><\/code><\/div><\/div><div class=\"container\"><div class=\"line\"><code>jQuery.isXMLDoc( <span class=\"hljs-built_in\">document<\/span>.body ) <span class=\"hljs-comment\">\/\/ false<\/span><\/code><\/div><\/div><\/pre>\n\t\t\t\t<\/td>\n\t\t\t<\/tr>\n\t\t<\/tbody>\n\t<\/table>\n<\/div>\n\n<\/div><\/section>\n<\/div><\/article>","protected":false},"excerpt":{"rendered":"<p>Check to see if a DOM node is within an XML document (or is an XML document).<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76,83],"tags":[],"class_list":["post-406","post","type-post","status-publish","format-standard","hentry","category-utilities","category-83"],"_links":{"self":[{"href":"https:\/\/api.jquery.com\/wp-json\/wp\/v2\/posts\/406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/api.jquery.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/api.jquery.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/api.jquery.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/api.jquery.com\/wp-json\/wp\/v2\/comments?post=406"}],"version-history":[{"count":2,"href":"https:\/\/api.jquery.com\/wp-json\/wp\/v2\/posts\/406\/revisions"}],"predecessor-version":[{"id":904,"href":"https:\/\/api.jquery.com\/wp-json\/wp\/v2\/posts\/406\/revisions\/904"}],"wp:attachment":[{"href":"https:\/\/api.jquery.com\/wp-json\/wp\/v2\/media?parent=406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/api.jquery.com\/wp-json\/wp\/v2\/categories?post=406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/api.jquery.com\/wp-json\/wp\/v2\/tags?post=406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}