{"id":3007,"date":"2013-11-01T17:55:48","date_gmt":"2013-11-01T08:55:48","guid":{"rendered":"http:\/\/auctionpro.co.kr\/?p=3007"},"modified":"2023-07-17T09:23:21","modified_gmt":"2023-07-17T00:23:21","slug":"vb-xml-%ed%8a%b9%ec%a0%95-%eb%85%b8%eb%93%9c-%ec%a0%9c%ea%b1%b0","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=3007","title":{"rendered":"[vb] xml \ud2b9\uc815 \ub178\ub4dc \uc81c\uac70"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><code>\n<\/code><\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:c# decode:true \" >Dim i As Integer\nDim objDOMDocument As DOMDocument 'XMLDocument\nDim objNodeList As IXMLDOMNodeList 'XMLNodeList \uba87\uac1c\ub098 \uc788\ub294\uc9c0 \uc54c\ub824\uace0\n\nDim objNode As IXMLDOMNode\n\n'Set objDOMDocument = Server.CreateObject(\"microsoft.XMLDOM\") 'asp \uc6a9\nSet objDOMDocument = New DOMDocument '\ub3d9\uc801\uba54\ubaa8\ub9ac \uc124\uc815\nobjDOMDocument.async = False\nobjDOMDocument.Load (\"test.xml\") 'text xml \ud30c\uc77c \ubd88\ub7ec\uc624\uae30 string \uc740 LoadXml\n\nSet objNodeList = objDOMDocument.getElementsByTagName(\"books\/book\") '\ub85c\ub4dc \ucc3e\uae30\nIf objNodeList.length Then\nFor i = 0 To objNodeList.length - 1 '\" node \uac2f\uc218\ub9cc\ud07c \ub8e8\ud504\ub97c \ub3c8\ub2e4. 2\uac1c\uba74 2\ubc88\nIf objNodeList.Item(i).selectSingleNode(\"Name\").nodeTypedValue = \"DEL\" Then\nSet objNode = objNodeList.Item(i).firstChild.parentNode\nobjNodeList.Item(i).parentNode.removeChild objNode\nend if\nNext\nEnd If\n\nMsgBox objDOMDocument.xml<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[14],"tags":[],"class_list":["post-3007","post","type-post","status-publish","format-standard","hentry","category-visualbasic6-0-vb"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/3007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3007"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/3007\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}