<?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>The user wants to load an xml document, i have to validate that the structure is</title><link>https://community.appian.com/discussions/f/general/2424/the-user-wants-to-load-an-xml-document-i-have-to-validate-that-the-structure-is</link><description>The user wants to load an xml document, i have to validate that the structure is correct, How to validate an XML is correct? Example (Wrong xml, needed to / and name--&amp;gt;Name): &amp;lt;Document&amp;gt; &amp;lt;name&amp;gt;Viloria Leon&amp;lt;/Name&amp;gt; &amp;lt;Fecha&amp;gt;15/10/1975&amp;lt;Fecha&amp;gt; &amp;lt;/Document&amp;gt; Regards</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: The user wants to load an xml document, i have to validate that the structure is</title><link>https://community.appian.com/thread/8523?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2014 03:49:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b09d8d00-d0f6-41b8-a974-2619843a7ecf</guid><dc:creator>Eduardo Fuentes</dc:creator><description>There&amp;#39;s no out of the box to validate an XML. The xpathsnippet() function will fail and throw an error if the XML is not well-formed but that won&amp;#39;t help with your requirement since that will mean the node will fail and you won&amp;#39;t be able to &amp;quot;catch&amp;quot; and handle that exception.&lt;br /&gt;&lt;br /&gt;Since this is an XML related requirement you should be able to find libraries online or even sample code to validate an XML in Java and then build your own custom function. Here&amp;#39;s one example &lt;a href="http://stackoverflow.com/questions/15732/whats-the-best-way-to-validate-an-xml-file-against-an-xsd-file"&gt;stackoverflow.com/.../whats-the-best-way-to-validate-an-xml-file-against-an-xsd-file&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>