<?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>Parse a xml file to CDT in a expression rule</title><link>https://community.appian.com/discussions/f/rules/14423/parse-a-xml-file-to-cdt-in-a-expression-rule</link><description>Hi everyone! When i read a xml in a expression rule with the function &amp;quot;loadbundle&amp;quot; , it doesn&amp;#180;t take the repetead values, so i can&amp;#180;t use a foreach to iterate the items .Anyone knows how read repetead values in a xml file??? 
 
 I try also with the function</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Parse a xml file to CDT in a expression rule</title><link>https://community.appian.com/thread/64878?ContentTypeID=1</link><pubDate>Tue, 26 Feb 2019 13:33:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0f7488a8-b062-42a0-a7d7-14804a47e6f3</guid><dc:creator>rebecar369</dc:creator><description>I try with this : &lt;br /&gt;
&lt;br /&gt;
local!xpath: xpathsnippet(&lt;br /&gt;
    ri!xml,&lt;br /&gt;
    &amp;quot;/*/*&amp;quot;,&lt;br /&gt;
    &amp;quot;xsd&amp;quot;&lt;br /&gt;
  ),&lt;br /&gt;
&lt;br /&gt;
where ri!xml is the xml document&lt;br /&gt;
&lt;br /&gt;
It works! :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Parse a xml file to CDT in a expression rule</title><link>https://community.appian.com/thread/64843?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 14:26:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d8d1dee6-e38d-4252-9f3c-40b1db33864c</guid><dc:creator>Shyam Bommakanti</dc:creator><description>&lt;a href="/members/rebecar369"&gt;rebecar369&lt;/a&gt; Try this: Create CDT matching your XML format and use torecord function&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/19.1/fnc_scripting_torecord.html"&gt;docs.appian.com/.../fnc_scripting_torecord.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>