{"id":32553,"date":"2021-02-02T08:05:00","date_gmt":"2021-02-02T02:35:00","guid":{"rendered":"https:\/\/www.flexmind.co\/?p=32553"},"modified":"2021-02-02T19:11:26","modified_gmt":"2021-02-02T13:41:26","slug":"xml-node-action-in-pad-for-xml-element-attribute","status":"publish","type":"post","link":"https:\/\/www.flexmind.co\/xml-node-action-in-pad-for-xml-element-attribute\/","title":{"rendered":"XML node Trilogy in PAD – Part-II"},"content":{"rendered":"\n
Hello everyone, today we will see the second part of the XML node Trilogy in PAD. You can go through this link to see the previous article. In this article, we will look below the actions of the XML node in the pad (Power Automate Desktop) for the XML element attribute<\/strong>. Before we jump into the above three actions of PAD, I would like to share the XML file. In order to know more about XML attributes, refer to this link<\/a>.<\/p>\n\n\n\n In the above example I am using currency attribute of price element. Let’s start !!<\/p>\n\n\n\n This action get the value of an attribute of an XML element. For example, let us consider this below piece of code. Here currency is an attribute for price element which value is INR<\/strong>.<\/p>\n\n\n\n
1. Get XML element attributes
2. Set XML element attributes
3. Remove XML element attributes<\/strong><\/p>\n\n\n\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<bookstore>\n <book>\n <title lang=\"en\">Harry Potter<\/title>\n <price currency=\"INR\">29.99<\/price>\n <\/book>\n <book>\n <title lang=\"en\">Learning XML<\/title>\n <price currency=\"HKD\">39.95<\/price>\n <\/book>\n <book>\n <title lang=\"en\">Flexmind PowerApps<\/title>\n <price currency=\"USD\">49.95<\/price>\n <\/book>\n<\/bookstore><\/pre>\n\n\n\n
Get XML element attribute<\/strong><\/h2>\n\n\n\n
<price currency=\"INR\">29.99<\/price><\/pre>\n\n\n\n