<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: XML to delimited text file for Infopath</title><link>https://www.infopathdev.com:443/forums/thread/45497.aspx</link><pubDate>Wed, 05 Aug 2009 23:56:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45497</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45497.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45497</wfw:commentRss><description>&lt;p&gt;Hi &lt;strong&gt;senthilkungumaraj&lt;/strong&gt;&amp;nbsp; and welcome.&lt;/p&gt;
&lt;p&gt;InfoPathDev offers free forums to help people with InfoPath, SharePoint and Qdabra issues. We do not offer free forum support for general coding questions. &lt;/p&gt;
&lt;p&gt;BTW, I can&amp;#39;t think of why you would want to delimit the XML. XML is already delimited. Just parse using the tags that it already has. .NET is your friend. &lt;/p&gt;</description></item><item><title>XML to delimited text file for Infopath</title><link>https://www.infopathdev.com:443/forums/thread/45310.aspx</link><pubDate>Sun, 02 Aug 2009 18:04:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45310</guid><dc:creator>senthilkungumaraj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45310.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45310</wfw:commentRss><description>&lt;p&gt;Hi, I am trying to convert the xml file that infopath generated info pipeline delimited file. I managed to write a code that convert xslt stylesheet to delimited file. Now I want to convert xml to xslt and then use my code to convert it into delimited text file.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Is there any way to convert xml directly to delimited file? Or Is there any vb code to convert xml to xslt ? &lt;/p&gt;&lt;p&gt;&amp;nbsp;This is the code I used for xslt to pipeline delimited file:&lt;/p&gt;&lt;pre&gt;            Dim i As Integer&lt;br /&gt;            Dim j As Integer&lt;br /&gt;            Dim docXML As New XmlDocument&lt;br /&gt;            docXML.Load(&amp;quot;C:\Documents and Settings\nachimk\Desktop\60251.xml&amp;quot;)&lt;br /&gt;            Dim path As String = &amp;quot;C:\Documents and Settings\nachimk\My Documents\MyTest3.txt&amp;quot;&lt;br /&gt;            Dim sw As StreamWriter = File.CreateText(path)&lt;br /&gt;            Dim nodRoot As XmlElement = docXML.DocumentElement&lt;br /&gt;            &amp;#39;Dim node As XmlNode&lt;br /&gt;&lt;br /&gt;            Dim fd() As String = {&amp;quot;Application_Name&amp;quot;, &amp;quot;System_Name&amp;quot;, &amp;quot;Package&amp;quot;, &amp;quot;Description&amp;quot;, &amp;quot;IS_Domain&amp;quot;, &amp;quot;Business_Domain&amp;quot;, &amp;quot;Alias&amp;quot;, &amp;quot;Satyam_Support&amp;quot;, &amp;quot;AppCriticality&amp;quot;, &amp;quot;Status&amp;quot;, &amp;quot;Nissan_Region&amp;quot;, &amp;quot;Regional_Global_Scope&amp;quot;, &amp;quot;Brands_Supported&amp;quot;, &amp;quot;Status_Option_Change&amp;quot;, &amp;quot;New_Application&amp;quot;, &amp;quot;Mega_ID&amp;quot;, &amp;quot;Business_Contact&amp;quot;, &amp;quot;Primary_BA_Contact&amp;quot;, &amp;quot;Secondary_BA_Contact&amp;quot;, &amp;quot;Business_Value&amp;quot;, &amp;quot;Functional_Value&amp;quot;, &amp;quot;Technical_Condition&amp;quot;, &amp;quot;Code_Availability&amp;quot;, &amp;quot;Base_Map_Business_Process_L1&amp;quot;, &amp;quot;Base_Map_Business_Process_L2&amp;quot;, &amp;quot;Base_Map_Business_Process_L3&amp;quot;, &amp;quot;BPRM_L1&amp;quot;, &amp;quot;BPRM_L2&amp;quot;, &amp;quot;BPRM_L3&amp;quot;, &amp;quot;BPRM_L4&amp;quot;, &amp;quot;Application_Type&amp;quot;, &amp;quot;Number_Of_Users&amp;quot;, &amp;quot;Platform&amp;quot;, &amp;quot;Data_Security_Classification&amp;quot;, &amp;quot;Usage_Volume&amp;quot;, &amp;quot;Business_Complexity&amp;quot;, &amp;quot;Technical_Complexity&amp;quot;, &amp;quot;Customization_Level&amp;quot;, &amp;quot;Number_Of_Function_Points&amp;quot;, &amp;quot;Directory_Service&amp;quot;, &amp;quot;Data_Privacy&amp;quot;, _&lt;br /&gt;            &amp;quot;DDQT_Databases&amp;quot;, &amp;quot;DDQT_Version&amp;quot;, &amp;quot;DDQT_Server&amp;quot;, &amp;quot;DDQT_P&amp;quot;, &amp;quot;DDQT_S&amp;quot;, &amp;quot;DDQT_Q&amp;quot;, &amp;quot;DDQT_D&amp;quot;, &amp;quot;PL_Languages&amp;quot;, &amp;quot;PL_Version&amp;quot;, &amp;quot;PL_Server&amp;quot;, &amp;quot;PL_P&amp;quot;, &amp;quot;PL_S&amp;quot;, &amp;quot;PL_Q&amp;quot;, &amp;quot;PL_D&amp;quot;, &amp;quot;AT_ToolsandMiddleware&amp;quot;, &amp;quot;AT_Version&amp;quot;, &amp;quot;AT_Server&amp;quot;, &amp;quot;AT_P&amp;quot;, &amp;quot;AT_S&amp;quot;, &amp;quot;AT_Q&amp;quot;, &amp;quot;AT_D&amp;quot;, &amp;quot;SLT_SystemTools&amp;quot;, &amp;quot;SLT_Version&amp;quot;, &amp;quot;SLT_Servers&amp;quot;, &amp;quot;SLT_P&amp;quot;, &amp;quot;SLT_S&amp;quot;, &amp;quot;SLT_Q&amp;quot;, &amp;quot;SLT_D&amp;quot;, &amp;quot;OS_OperatingSystem&amp;quot;, &amp;quot;OS_Version&amp;quot;, &amp;quot;OS_Server&amp;quot;, &amp;quot;OS_P&amp;quot;, &amp;quot;OS_S&amp;quot;, &amp;quot;OS_Q&amp;quot;, &amp;quot;OS_D&amp;quot;, &amp;quot;Other_Comments&amp;quot;, &amp;quot;Development_Check&amp;quot;, &amp;quot;QA_Check&amp;quot;, &amp;quot;Staging_Check&amp;quot;, &amp;quot;Production_Check&amp;quot;}&lt;br /&gt;            &amp;#39;fd(0) = &amp;quot;Package&amp;quot;&lt;br /&gt;            MessageBox.Show(UBound(fd))&lt;br /&gt;            For j = 0 To UBound(fd) - 1&lt;br /&gt;                Dim nodItems As XmlNodeList = nodRoot.GetElementsByTagName(fd(j).ToString)&lt;br /&gt;                If nodItems.Count = 0 Then&lt;br /&gt;                    MessageBox.Show(&amp;quot;Cannot Find&amp;quot; + fd(j))&lt;br /&gt;                ElseIf nodItems.Count &amp;gt; 0 Then&lt;br /&gt;                    For i = 0 To nodItems.Count - 1&lt;br /&gt;                        MessageBox.Show(fd(j) + nodItems(0).InnerXml)&lt;br /&gt;                    Next i&lt;br /&gt;                    &amp;#39;If File.Exists(path) = False Then&lt;br /&gt;                    &amp;#39; Create a file to write to.&lt;br /&gt;                    sw.Write(fd(j) + &amp;quot;|&amp;quot; + nodItems(0).InnerXml + &amp;quot;|&amp;quot;)&lt;br /&gt;                End If&lt;br /&gt;            Next j&lt;br /&gt;            sw.Flush()&lt;/pre&gt;&lt;pre&gt;            sw.Close()&lt;/pre&gt;&lt;pre&gt;Can any one give me the code? Thanks&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>