<?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>How can we read the content of an XML File</title><link>https://community.appian.com/discussions/f/general/8359/how-can-we-read-the-content-of-an-xml-file</link><description>I have an XML file. I want to read the whole XML file into a text field. Then do some manipulation asn then create a new XML file using the updated text. Note: The XML file can vary in structure. Please let me know how can we achieve this via APPIAN OriginalPostID</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How can we read the content of an XML File</title><link>https://community.appian.com/thread/36631?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2016 04:14:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e08f23de-65e4-490a-8560-1b6819d5541e</guid><dc:creator>subramanian Valliappan</dc:creator><description>Hi Senthilr you can use the function readTextFromFile which is available in shared components to read the contents of a file as a string value.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can we read the content of an XML File</title><link>https://community.appian.com/thread/36625?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 21:49:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b9cb4f05-0e23-40c4-8e15-311980b2c594</guid><dc:creator>senthilr143</dc:creator><description>Yes,. Can you please help me to know what is that function?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can we read the content of an XML File</title><link>https://community.appian.com/thread/36618?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 19:17:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:98b55278-5e2f-4e7e-b9fb-a39c96138275</guid><dc:creator>sparshs</dc:creator><description>so just use it as a string . You can use function to read the whole document and get the whole content as a string value.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can we read the content of an XML File</title><link>https://community.appian.com/thread/36612?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 18:35:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b6bf5644-de8a-40c3-844d-ea82a552e364</guid><dc:creator>senthilr143</dc:creator><description>To use xpathsnippet we need to know the structure of the XML. But the XML which will get loaded are dynamic. We will not have any idea on the structure of the XML. User may upload any and I will read the content of the file into a text and then replace certain keyword with some value.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can we read the content of an XML File</title><link>https://community.appian.com/thread/36599?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 11:38:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d1234f9b-5080-40a4-9a38-4949e768a3ce</guid><dc:creator>sparshs</dc:creator><description>you can use xpathsnippet() and if the xml is complex you can create a custom smart service to read this.Let us know if you need some other information on this.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can we read the content of an XML File</title><link>https://community.appian.com/thread/36598?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 11:17:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2a86d960-2e1f-467a-9d01-f157238fc730</guid><dc:creator>pavithrac</dc:creator><description>Hi Senthilr143, did you had a try to use the Appian Scripting Function xpathsnippet() which can do your job. Please refer the lin &lt;a href="https://forum.appian.com/suite/help/16.2/Scripting_Functions.html#xpathsnippet.28.29"&gt;forum.appian.com/.../Scripting_Functions.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>