{"id":1471,"date":"2014-12-13T12:54:03","date_gmt":"2014-12-13T04:54:03","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=1471"},"modified":"2014-12-13T12:54:03","modified_gmt":"2014-12-13T04:54:03","slug":"qxml%e6%9b%b4%e6%96%b0-%e6%96%b0%e5%a2%9ehaschild%e5%87%bd%e6%95%b0%e4%bb%a5%e7%ae%80%e5%8c%96%e7%bc%96%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=1471","title":{"rendered":"QXML\u66f4\u65b0-\u65b0\u589eHasChild\u51fd\u6570\u4ee5\u7b80\u5316\u7f16\u7a0b"},"content":{"rendered":"<h4>\u3010\u66f4\u65b0\u8bf4\u660e\u3011<\/h4>\n<p>HasChild\u51fd\u6570\u7528\u4e8e\u5224\u5b9a\u5f53\u524d\u7ed3\u70b9\u4e0b\uff0c\u662f\u5426\u5b58\u5728\u6307\u5b9a\u8def\u5f84\u7684\u5b50\u7ed3\u70b9\uff0c\u5982\u679c\u5b58\u5728\uff0c\u5219\u8fd4\u56deTrue\uff0c\u540c\u65f6\uff0c\u901a\u8fc7AChild\u53c2\u6570\u8fd4\u56de\u627e\u5230\u7684\u5b50\u7ed3\u70b9\uff0c\u5982\u679c\u5931\u8d25\uff0c\u5219\u8fd4\u56deFalse\uff0c\u7b49\u4ef7\u4e8e\u4e0b\u9762\u7684\u4ee3\u7801\uff1a<\/p>\n<p>[Delphi]<\/p>\n<pre class=\"lang:delphi decode:true\">AChild:=AXML.ItemByPath(APath);\r\nif AChild&lt;&gt;nil then\r\n   ...\r\nelse\r\n   ...\r\n<\/pre>\n<p>[C++]<\/p>\n<pre class=\"lang:c++ decode:true\">AChild=AXML-&gt;ItemByPath(APath);\r\nif (AChild)\r\n  ...\r\nelse\r\n  ...<\/pre>\n<p>\u800c\u4f7f\u7528HasChild\u540e\uff0c\u4e0a\u9762\u7684\u4ee3\u7801\u5c31\u7cbe\u7b80\u4e3a\uff1a<\/p>\n<p>[Delphi]<\/p>\n<pre class=\"lang:delphi decode:true\">if AXML.HasChild(APath,AChild) then\r\n   ...\r\nelse\r\n   ...<\/pre>\n<p>[C++]<\/p>\n<pre class=\"lang:c++ decode:true\">if AXML.HasChild(APath,AChild) then\r\n  ...\r\nelse\r\n  ...<\/pre>\n<h4>\u00a0\u3010\u66f4\u65b0\u7ea7\u522b\u3011<\/h4>\n<p>\u53ef\u9009<\/p>\n<h4>\u3010\u7279\u522b\u611f\u8c22\u3011<\/h4>\n<p>\u963f\u6728<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u66f4\u65b0\u8bf4\u660e\u3011 HasChild\u51fd\u6570\u7528\u4e8e\u5224 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,9,52],"tags":[],"class_list":["post-1471","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-qdac","category-qxml"],"views":3240,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1471"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1471\/revisions"}],"predecessor-version":[{"id":1472,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1471\/revisions\/1472"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}