{"id":11683,"date":"2021-12-08T06:26:33","date_gmt":"2021-12-08T06:26:33","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=11683"},"modified":"2021-12-08T06:26:51","modified_gmt":"2021-12-08T06:26:51","slug":"solved-read-specific-content-of-an-xml-file-through-batch-file","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/read-specific-content-of-an-xml-file-through-batch-file\/29578.html","title":{"rendered":"Solved Read Specific Content Of An XML File Through Batch File"},"content":{"rendered":"<p>I am trying to read the content of XML file to get a particular value from a tag and export in another .txt or .xls file. The XML file looks like:<\/p>\n<p>&lt;definition name=&#8221;.test1&#8243; extends=&#8221;.b&#8221;&gt;<br \/>\n&lt;put name=&#8221;id&#8221; value=&#8221;TR012&#8243; \/&gt;<br \/>\n&lt;\/definition&gt;<\/p>\n<p>&lt;definition name=&#8221;.test2&#8243; extends=&#8221;.b&#8221;&gt;<br \/>\n&lt;put name=&#8221;id&#8221; value=&#8221;TR013&#8243; \/&gt;<br \/>\n&lt;\/definition&gt;<\/p>\n<p>The XML file has multiple such entries and i want to read:<br \/>\n1) the value in name property of definition tag<br \/>\n2) the value in value property of &lt;put&gt; tag<\/p>\n<p>Currently when i tried i got only the last value and not all of them. Is it possible to retrieve internal specific values and export to another file through BAT file?<br \/>\nNeed Help on this piece<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":21},"question-category":[55],"question_tags":[],"class_list":["post-11683","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/11683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=11683"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=11683"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=11683"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=11683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}