<?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>Need help on reading XML files</title><link>https://community.appian.com/discussions/f/general/20749/need-help-on-reading-xml-files</link><description>Hi, 
 
 I have a below requirement. Could someone please help me? 
 1. Customers claims come in an XML along with the required documents to Appian for further processing. 
 2.I need to have knowledge on how to read the xml and also, read the documents</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80894?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 06:58:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1c8e32d1-f7e5-49d4-a737-f3119490bc39</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Sorry, but I do not have the time to create an application for you. I think I gave you enough hints on how to implement this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80893?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 06:53:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0dac9d70-f2c9-4b0f-ac53-63970f341f7c</guid><dc:creator>faisalf0003</dc:creator><description>&lt;p&gt;As we had discussed about how I can read XML in APPIAN and write the same to CDT type and then write to DB.&lt;/p&gt;
&lt;p&gt;I am not able to proceed. If you could please help me as you had mentioned that you would create three solutions.&lt;/p&gt;
&lt;p&gt;It will help me understand the logic.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Faisal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80892?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 06:50:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23221c6b-b0e1-4ce6-93ba-1a20ed3381dd</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You are welcome :-)&lt;/p&gt;
&lt;p&gt;Please try to build your own solution. I will try to support you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80891?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 06:46:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83587a49-bb19-4116-bac2-7d88348d2c8e</guid><dc:creator>faisalf0003</dc:creator><description>&lt;p&gt;I have no misunderstanding with you at all. In fact I feel I got a good mentor for me :) ..really happy you are helping me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80890?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 06:43:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:97f2788c-af51-4f74-b654-b78ca9951a80</guid><dc:creator>faisalf0003</dc:creator><description>&lt;p&gt;You had answered to my question and mentioned that you would be providing code for my doubt .&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;Then I would try to have three processes. One to fetch files from FTP, one to check for local files, one to do the XML work which will be called by the other two.&lt;/span&gt;&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80889?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 06:41:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:621d27c9-4643-4818-b866-556be89d4ef3</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Yes, this is the design I would probably start with. In case we have a misunderstanding, I will not create that for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80888?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 06:37:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae567a52-9e80-41bb-805b-f4067b607b50</guid><dc:creator>faisalf0003</dc:creator><description>&lt;p&gt;You mentioned that you will prepare PMs for XML reading for three Scenarios&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;Then I would try to have three processes. One to fetch files from FTP, one to check for local files, one to do the XML work which will be called by the other two.&lt;/span&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80887?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 06:24:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2be0fa0-ff25-48f8-a2ad-e611c7386434</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK. Maybe I missed it, but what is your question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80886?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 06:22:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9eb5ef6d-dd67-40f2-9704-cdd66bc450a0</guid><dc:creator>faisalf0003</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;I have completed Appian Training Videos.&lt;/p&gt;
&lt;p&gt;I am doing some POCs. In that I had some issues with XML reading.&lt;/p&gt;
&lt;p&gt;Waiting for your answer &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;I am not sure if you have mentioned some other different kind of Training.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Faisal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80885?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 06:08:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bddd957b-251b-4f7c-b1ec-3c467dc15456</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Then, welcome to the show :-)&lt;/p&gt;
&lt;p&gt;What can we help you with? I assume you already know the documentation, academy and play book. If yes, then it would be a good idea to think about a training.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80883?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 05:51:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:054beb26-f455-4cf6-b564-52c2ead7da94</guid><dc:creator>faisalf0003</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;Any luck on the solution. I am eager to know how we can implement this. I am a learner and I want to learn appian and needs your suggestions to learn Appian effectively.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80867?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 10:15:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1215389a-f02f-4de9-93ec-51310f11c85d</guid><dc:creator>faisalf0003</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;Many thanks for your help !&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80866?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 09:15:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aaea295f-3b19-4881-9773-dcfe585c147c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Then I would try to have three processes. One to fetch files from FTP, one to check for local files, one to do the XML work which will be called by the other two.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80864?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 08:21:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eac9a184-c7d4-4d3c-910c-e9bbb34d7392</guid><dc:creator>faisalf0003</dc:creator><description>&lt;p&gt;Apologies! I meant to say the XML file is already in Appian Folder and then I want to read the xml file to a CDT.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Faisal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80863?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 08:13:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:70d7705d-b454-4975-828c-334c8412b5b5</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;To fetch files you will need a scheduled recurring process.&lt;/p&gt;
&lt;p&gt;What do you mean with &amp;quot;local machine&amp;quot;? If this is client, then you need a process with file upload capability in the start form.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80862?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 07:32:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d029ceed-2450-4cd0-85f4-b2ed046ac2d1</guid><dc:creator>faisalf0003</dc:creator><description>&lt;p&gt;Thank you Stefan.&lt;/p&gt;
&lt;p&gt;I have two requirements:&lt;/p&gt;
&lt;p&gt;Appian is fetching from an FTP server and another one we want to read from an XML existing in Local machine.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80861?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 06:56:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8ce3bcf4-dd39-4f80-851c-e65906c67e12</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Where is the XML coming from? This would probably answer your question whether you need a process model or not.&lt;/p&gt;
&lt;p&gt;Regarding reading the XML. I would create an expression which transforms the XML into an Appian CDT. You can do that via toRecord()&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.1/fnc_scripting_torecord.html"&gt;https://docs.appian.com/suite/help/21.1/fnc_scripting_torecord.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;or use xPathSnippet/xPathDocument to read each value individually. I would prefer the second way as it provides more flexibility.&lt;/p&gt;
&lt;p&gt;This expression can be used in a process or wherever you need.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80860?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 06:41:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6b72c760-f997-4e99-8f93-3a1f2403d27b</guid><dc:creator>faisalf0003</dc:creator><description>&lt;p&gt;Hi Stefan ,&lt;/p&gt;
&lt;p&gt;Thanks for the reply!&lt;/p&gt;
&lt;p&gt;We have one XML file with the claim details and all those claim details to be written in Appian.&lt;/p&gt;
&lt;p&gt;How can I read all the XML fields in Appian?&lt;/p&gt;
&lt;p&gt;Do I need to create an exact CDT and use Process Model to use this function?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;XML:&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;yes&amp;quot;?&amp;gt;&amp;lt;Intake_ClaimBatch&amp;gt;&amp;lt;CreatedDateTimeUTC&amp;gt;2017-12-12T18:02:38.890-05:00&amp;lt;/CreatedDateTimeUTC&amp;gt;&amp;lt;BatchID&amp;gt;101009&amp;lt;/BatchID&amp;gt;&amp;lt;ClaimCount&amp;gt;1&amp;lt;/ClaimCount&amp;gt;&amp;lt;ClaimSystemBatchID&amp;gt;0&amp;lt;/ClaimSystemBatchID&amp;gt;&amp;lt;ClaimDetails&amp;gt;&amp;lt;ClaimMetaData&amp;gt;&amp;lt;UniqueClaimID&amp;gt;552300&amp;lt;/UniqueClaimID&amp;gt;&amp;lt;GlobalIntakeID&amp;gt;0&amp;lt;/GlobalIntakeID&amp;gt;&amp;lt;/Intake_ClaimBatch&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help on reading XML files</title><link>https://community.appian.com/thread/80841?ContentTypeID=1</link><pubDate>Fri, 09 Apr 2021 10:16:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ef74a802-827b-4fbe-abc0-b48515f6c9d6</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Please elaborate. We need way more details to help and cannot analyze your requirement.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/"&gt;https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In general this helps to read XML files&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.1/fnc_scripting_xpathsnippet.html"&gt;docs.appian.com/.../fnc_scripting_xpathsnippet.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>