<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Form preview issue | lang attribute on Root node?</title><link>https://www.infopathdev.com:443/forums/thread/10503.aspx</link><pubDate>Thu, 28 Sep 2006 11:29:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10503</guid><dc:creator>TRashid</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10503.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10503</wfw:commentRss><description>I've just verified that this &lt;b&gt;issue did not occur &lt;/b&gt;on another machine. &lt;br /&gt;&lt;br /&gt;The difference between the two machines? - &lt;br /&gt;&lt;br /&gt; - The machine &lt;b&gt;that it works on has &lt;/b&gt;only InfoPath 2003 SP1 &lt;br /&gt;installed + infopath toolkit + VS 2005&lt;br /&gt;&lt;br /&gt; - The machine &lt;b&gt;that it does not work on &lt;/b&gt;(i.e. it gives the problem as described above) has InfoPath 2007 beta installed in addition to the infopath 2003 SP2 installation + infopath toolkit + VS 2005&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-Tanveer Rashid</description></item><item><title>Re: Form preview issue | lang attribute on Root node?</title><link>https://www.infopathdev.com:443/forums/thread/10502.aspx</link><pubDate>Thu, 28 Sep 2006 10:31:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10502</guid><dc:creator>TRashid</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10502.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10502</wfw:commentRss><description>No, I didn't make any changes to the view. Just selected the same schema after clicking "Design form from a Xml Document and/or schema" and then previewed the form after completing the wizard.&lt;br /&gt;&lt;br /&gt;Any ideas?&lt;br /&gt;&lt;br /&gt;I've faced this problem even with a simple schema such as the one below.&lt;br /&gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-16"?&amp;gt;&lt;br /&gt;&amp;lt;xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns="http://namespace" elementFormDefault="qualified" targetNamespace="http://namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema"&amp;gt;&lt;br /&gt;  &amp;lt;xs:element name="Root"&amp;gt;&lt;br /&gt;    &amp;lt;xs:complexType&amp;gt;&lt;br /&gt;      &amp;lt;xs:sequence&amp;gt;&lt;br /&gt;        &amp;lt;xs:element name="Child1"&amp;gt;&lt;br /&gt;          &amp;lt;xs:complexType /&amp;gt;&lt;br /&gt;        &amp;lt;/xs:element&amp;gt;&lt;br /&gt;        &amp;lt;xs:element name="Child2"&amp;gt;&lt;br /&gt;          &amp;lt;xs:complexType /&amp;gt;&lt;br /&gt;        &amp;lt;/xs:element&amp;gt;&lt;br /&gt;      &amp;lt;/xs:sequence&amp;gt;&lt;br /&gt;      &amp;lt;xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace" processContents="lax" /&amp;gt;&lt;br /&gt;    &amp;lt;/xs:complexType&amp;gt;&lt;br /&gt;  &amp;lt;/xs:element&amp;gt;&lt;br /&gt;&amp;lt;/xs:schema&amp;gt;&lt;br /&gt;&lt;br /&gt;I still run into the second issue when previewing a form that uses the schema above. Can someone check if they face the same problem? Just create a new infopath project in VS2005 and then once the form is opened, use Convert Main Data source to point to the schema above.&lt;br /&gt;&lt;br /&gt;Once the schema has been imported, rebuild the project and click on preview.&lt;br /&gt;&lt;br /&gt;-Tanveer Rashid</description></item><item><title>Re: Form preview issue | lang attribute on Root node?</title><link>https://www.infopathdev.com:443/forums/thread/10501.aspx</link><pubDate>Tue, 26 Sep 2006 18:56:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10501</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10501.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10501</wfw:commentRss><description>The second error you are seeing seems to be coming from the view, or XSL file. When you said that you imported the same schema to a form without code in it, did you mean that you also recreated the view as this is where the error seems to be coming from.</description></item><item><title>Form preview issue | lang attribute on Root node?</title><link>https://www.infopathdev.com:443/forums/thread/5847.aspx</link><pubDate>Tue, 26 Sep 2006 12:23:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5847</guid><dc:creator>TRashid</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5847.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5847</wfw:commentRss><description>I'm keep getting the following error when i try to preview my infopath form&lt;br /&gt;&lt;br /&gt;&lt;font color="red"&gt;InfoPath cannot open the selected form because of an error in the form's code.&lt;br /&gt;The attribute '&lt;a target="_blank" href=http://www.w3.org/XML/1998/namespace}lang'&gt;http://www.w3.org/XML/1998/namespace}lang'&lt;/a&gt; on the element '&lt;a target="_blank" href=http://namespace}InfoPathRoot'&gt;http://namespace}InfoPathRoot'&lt;/a&gt; is not defined in the DTD/Schema.&lt;/font id="red"&gt;&lt;br /&gt;&lt;br /&gt;InfoPathRoot is the root element of the schema.&lt;br /&gt;&lt;br /&gt;To avoid this issue, i added the "anyAttribute" to my schema definition&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace" processContents="skip"/&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I was hoping that with anyAttribute and processContents=skip, the infopath form would not attempt to find &lt;br /&gt;or validate the lang attribute in the InfoPathRoot element. However, once i've added this, i get the following error&lt;br /&gt;&lt;br /&gt;&lt;font color="red"&gt;InfoPath cannot open the selected form because of an error in the form's code.&lt;br /&gt;A floating attribute may not be passed as the context node for an XSLT transform or an XPath query.&lt;/font id="red"&gt;&lt;br /&gt;&lt;br /&gt;The form has managed code attached to it(C# , Visual Studio 2005 and Infopath 2003) &lt;br /&gt;&lt;br /&gt;An interesting observation is that if the same schema is imported into an infopath form that does not have any code behind it, then the first (lang) error does not occur and the form can be previewed successfully&lt;br /&gt;&lt;br /&gt;Is there something that i'm missing?&lt;br /&gt;&lt;br /&gt;I thank you in advance&lt;br /&gt;&lt;br /&gt;-Tanveer Rashid&lt;br /&gt;</description></item></channel></rss>