<?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>fill out forms with xml</title><link>https://www.infopathdev.com:443/forums/thread/22644.aspx</link><pubDate>Fri, 24 Aug 2007 20:36:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22644</guid><dc:creator>hsong</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22644.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22644</wfw:commentRss><description>&lt;p&gt;hello everyone&lt;/p&gt;
&lt;p&gt;I am trying to load the values from the xml (which&amp;nbsp;is&amp;nbsp;the saved value from the infopath form),&amp;nbsp;then open it with the template so it can be filled out automatically.&lt;/p&gt;
&lt;p&gt;so far, i have similar codes but when i do import, import doesn&amp;#39;t get all the values from the xml files&lt;/p&gt;
&lt;p&gt;following is my psuedo code.&lt;/p&gt;
&lt;p&gt;==================================&lt;/p&gt;
&lt;p&gt;oxDocumentCollection = application.xDocuments;&lt;br /&gt;oxDocument = oxDocumentCollection.newFromSolution(varURI : &amp;quot;&lt;a href="http://myserver/formTmplt.xsn"&gt;http://myserver/formTmplt.xsn&lt;/a&gt;&amp;quot;);&lt;/p&gt;
&lt;p&gt;oxDocument.importFile(bstrFileURI : &amp;quot;&lt;a href="http://lt-5158:8081/hang/jsp/test.xml"&gt;c://test.xml&lt;/a&gt;&amp;quot;);&lt;br /&gt;oxDocument.saveAs(bstrFileUrl : &amp;quot;c://a.xsn&amp;quot;);&lt;/p&gt;
&lt;p&gt;is there a way that you can mimic the &amp;quot;Fill Out a Form&amp;quot; feature just as&amp;nbsp;in infopath ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;thank you&lt;/p&gt;</description></item></channel></rss>