<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: XML Support Files</title><link>https://www.infopathdev.com:443/forums/thread/34299.aspx</link><pubDate>Fri, 14 Nov 2008 19:15:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34299</guid><dc:creator>brandtsmith</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34299.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=34299</wfw:commentRss><description>&lt;p&gt;Thanks...I actually found out that my support file would not be picked up as document properties in Word...so-I went back and added all of those fields to the SharePoint content type and rebuilt the IP form...kind of had the same problem though with the date fields...here is a real gotcha-the Sharepoint date field comes across as simpleType...but allows dateTime formatting..but the value would not format...the value from the SharePoint list was like &amp;quot;11-15-2008 00:00:00&amp;quot;...hmmm...I tried picking off the first 10 chars...still no formatting (you got to have some formatting to use date in a Word doc!)...OK...last resort...I saw a reference that XML datetime strings need to have a &amp;quot;T&amp;quot; in between date and time...so I stuffed a &amp;quot;T&amp;quot; in there (&amp;quot;11-15-2008T00:00:00&amp;quot;) and it worked!!!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Now the SharePoint List dates can be formatted in IP and used in the DIP! Here is the xpath from the Rule: (Pulling date for a Provider from a secondary ds named Provider Contacts into my Document Properties from the Content Type))&lt;/p&gt;
&lt;p&gt;&lt;em&gt;concat(substring(xdXDocument:GetDOM(&amp;quot;Provider Contacts&amp;quot;)/dfs:myFields/dfs:dataFields/dfs:Provider_Contacts/@Accreditation_Date[../@ID = xdXDocument:get-DOM()/pr:properties/p:properties/documentManagement/ns2:Provider], 1, 10), &amp;quot;T00:00:00&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: XML Support Files</title><link>https://www.infopathdev.com:443/forums/thread/34239.aspx</link><pubDate>Thu, 13 Nov 2008 16:11:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34239</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34239.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=34239</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Do want to restrict the data time field data type in xml then you have to change in .xsd as below,&lt;/p&gt;
&lt;p&gt;&amp;lt;xsd:simpleType name=&amp;quot;dateTime&amp;quot; id=&amp;quot;dateTime&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;xsd:restriction base=&amp;quot;xsd:dateTime&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;xsd:whiteSpace value=&amp;quot;collapse&amp;quot; fixed=&amp;quot;true&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;/xsd:restriction&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/xsd:simpleType&amp;gt;&lt;/p&gt;</description></item><item><title>XML Support Files</title><link>https://www.infopathdev.com:443/forums/thread/34235.aspx</link><pubDate>Thu, 13 Nov 2008 14:47:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34235</guid><dc:creator>brandtsmith</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34235.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=34235</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve used xml suport files a few times...but always with the simple data type ...basically strings...now I am trying to map a Sharepoint Contact list Date field (Secondary DS) into my external XML support files (Resource)...question is how to format the xml fle to allow me to use the formatting features of the DateTime fields?&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;Support&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;LastName/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;FirstName/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;FullName/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;EMailAddress/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Company/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;JobTitle/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;BusinessPhone/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;FaxNumber/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Address/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;City/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;StateProvince/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;ZipPostalCode/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;AcreditationType/&amp;gt;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;&amp;lt;AccreditationDate/&amp;gt; how to make this field a DateTime field in InfoPath???????????????????????????????&lt;br /&gt;&lt;/strong&gt;&amp;lt;/Support&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>