<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: xpath tags in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/xpath-tags/m-p/227894#M1760</link>
    <description>&lt;P&gt;Good point. I guess I just thought extracting the needed information would be best but you're right, I can use python to pull the pertinent information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 22 Aug 2018 14:45:26 GMT</pubDate>
    <dc:creator>cgrosskopf</dc:creator>
    <dc:date>2018-08-22T14:45:26Z</dc:date>
    <item>
      <title>xpath tags</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/xpath-tags/m-p/227791#M1758</link>
      <description>&lt;P&gt;Trying to get some info from the XML API in the form of panxapi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure this even works based on previous forum post by others but this is the closest I could find and it's based on the description having the term Donkey.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xpath="/config/devices/entry[@name='localhost.localdomain']/device-group/pre-rulebase/security/rules/entry[description[contains(text(), 'Donkey')]]"&lt;/P&gt;&lt;P&gt;panxapi.py -sxr $xpath Extra options after xpath: ["'Donkey')]]"] show: error: "No such node"&lt;/P&gt;&lt;P&gt;show: error: "No such node"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to pull all Security Policies with a particular tag, xpath seems a bit limited, am I heading down the right path?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 22:50:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/xpath-tags/m-p/227791#M1758</guid>
      <dc:creator>cgrosskopf</dc:creator>
      <dc:date>2018-08-21T22:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: xpath tags</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/xpath-tags/m-p/227796#M1759</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/28266"&gt;@cgrosskopf&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also experienced similar problems where the implemented xpath in PAN-OS has some limitations (or I was too stupid and the problem was a type error or something special that needs to be considered here in order to make the query work). Anyway, what I did in most cases was I did the query in a more general way and used the xpath in the programming/scripting language you need, because there you (probably) won't have these limitations and you can use whatever xpath function you need to filter the output in a mlre specific way.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 23:31:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/xpath-tags/m-p/227796#M1759</guid>
      <dc:creator>Remo</dc:creator>
      <dc:date>2018-08-21T23:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: xpath tags</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/xpath-tags/m-p/227894#M1760</link>
      <description>&lt;P&gt;Good point. I guess I just thought extracting the needed information would be best but you're right, I can use python to pull the pertinent information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 14:45:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/xpath-tags/m-p/227894#M1760</guid>
      <dc:creator>cgrosskopf</dc:creator>
      <dc:date>2018-08-22T14:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: xpath tags</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/xpath-tags/m-p/228035#M1762</link>
      <description>&lt;P&gt;There appears to be a syntax error in your request, as you have a hanging ")" after Donkey.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know exactly what is wrong, but my guess is it is related to that one or the prior one, maybe it should be text('Donkey') instead of text(), 'Donkey'&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 12:40:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/xpath-tags/m-p/228035#M1762</guid>
      <dc:creator>JoeAndreini</dc:creator>
      <dc:date>2018-08-23T12:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: xpath tags</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/xpath-tags/m-p/464597#M2914</link>
      <description>&lt;P&gt;It works. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 18:02:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/xpath-tags/m-p/464597#M2914</guid>
      <dc:creator>itzikc</dc:creator>
      <dc:date>2022-02-09T18:02:47Z</dc:date>
    </item>
  </channel>
</rss>

