<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Read XML code from ZIP file</title><link>https://community.appian.com/discussions/f/general/30017/read-xml-code-from-zip-file</link><description>I have a use use case, when any developer uploads their package in one interface and that should go through the XML code and return if any objects in that package are using any deprecated functions. 
 To achieve that , is there any function that would</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Read XML code from ZIP file</title><link>https://community.appian.com/thread/119199?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 07:30:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d06d7ab8-f25a-4099-9172-93a3b1648e81</guid><dc:creator>Ramesh Palati</dc:creator><description>&lt;p&gt;Finally I got the Xpath.&lt;br /&gt;Thanks!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read XML code from ZIP file</title><link>https://community.appian.com/thread/119198?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 07:15:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d0b7397c-b66e-4b4b-9a1e-81103649c2d1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Well, I have my doubts that&amp;nbsp;&amp;quot;&amp;lt;definition&amp;gt;&amp;quot; is a valid xPath expression. I suggest to spend some time to learn xPath and start with some simple examples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read XML code from ZIP file</title><link>https://community.appian.com/thread/119197?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 07:02:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:982dce6c-2fa2-4544-a97d-704d3e04a739</guid><dc:creator>Ramesh Palati</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;br /&gt;Thanks for it.&lt;br /&gt;I am finding difficulty in using&amp;nbsp;&lt;span&gt;xpathdocument() I am passing the XML file of object as docId but I was struck at&amp;nbsp;expression and prefix.&lt;br /&gt;&lt;br /&gt;I tried giving the &amp;lt;definition&amp;gt; in the expression but its throwing the following error.&lt;br /&gt;Expression evaluation error at function a!forEach [line 6]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function &amp;#39;xpathdocument&amp;#39; [line 8]: An error occurred while trying to evaluate the XPath expression (&amp;lt;definition&amp;gt;).&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!allObjectsXMLcode: getdocumentsfromfolder(
    rootFolder: 372884,
    recursiveSearch: false()
  ),
  a!forEach(
    items: local!allObjectsXMLcode[1],
    expression: xpathdocument(
      docId: fv!item,
      expression: &amp;quot;&amp;lt;definition&amp;gt;&amp;quot;
    )
  )
)&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Read XML code from ZIP file</title><link>https://community.appian.com/thread/119195?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 06:51:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ecd05510-24be-4293-b527-a9d6f0d61b3b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I suggest to have a look at the xPath functions.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/fnc_scripting_xpathdocument.html"&gt;https://docs.appian.com/suite/help/23.3/fnc_scripting_xpathdocument.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And there is a plugin to unzip files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>