<?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: InfoPath keeps breaking mySchema.xsd</title><link>https://www.infopathdev.com:443/forums/thread/8279.aspx</link><pubDate>Thu, 17 Nov 2005 23:55:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8279</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8279.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8279</wfw:commentRss><description>Adam,&lt;br /&gt;&lt;br /&gt;Did you try with a schema built in IP?  IP won't overwrite that for sure.&lt;br /&gt;If you are using XMLSpy an IP is overwriting things, you have a prefix/Namespace issue.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché&lt;br /&gt;InfoPathDev</description></item><item><title>Re: InfoPath keeps breaking mySchema.xsd</title><link>https://www.infopathdev.com:443/forums/thread/8278.aspx</link><pubDate>Thu, 17 Nov 2005 23:21:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8278</guid><dc:creator>adamw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8278.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8278</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by franck&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi Adam,&lt;br /&gt;&lt;br /&gt;you could try 2 things:&lt;br /&gt;1.  Work with your attributes as if they were nodes, not attributes (if you built your schema using InfoPath).&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;I'll try this one. Thanks.&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;br /&gt;2.  Keep you code but create your schema with XMLSpy.&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;This is what I've been doing this far but it just breaks everytime I save my Infopath form as Infopath goes and molests the schema and overwrites it. :(&lt;br /&gt;&lt;br /&gt;Adam&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché&lt;br /&gt;InfoPathDev&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;</description></item><item><title>Re: InfoPath keeps breaking mySchema.xsd</title><link>https://www.infopathdev.com:443/forums/thread/8277.aspx</link><pubDate>Thu, 17 Nov 2005 07:07:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8277</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8277.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8277</wfw:commentRss><description>Hi Adam,&lt;br /&gt;&lt;br /&gt;you could try 2 things:&lt;br /&gt;1.  Work with your attributes as if they were nodes, not attributes (if you built your schema using InfoPath).&lt;br /&gt;2.  Keep you code but create your schema with XMLSpy.&lt;br /&gt;&lt;br /&gt;Tell me if it helps. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché&lt;br /&gt;InfoPathDev</description></item><item><title>InfoPath keeps breaking mySchema.xsd</title><link>https://www.infopathdev.com:443/forums/thread/5115.aspx</link><pubDate>Thu, 17 Nov 2005 06:19:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5115</guid><dc:creator>adamw</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5115.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5115</wfw:commentRss><description>Hi&lt;br /&gt;&lt;br /&gt;I'm having a problem where InfoPath kills my working schema mySchema.xsd. I have the following:&lt;br /&gt;&lt;br /&gt;	&amp;lt;xsd:element name="list"&amp;gt;&lt;br /&gt;		&amp;lt;xsd:complexType&amp;gt;&lt;br /&gt;			&amp;lt;xsd:sequence&amp;gt;&lt;br /&gt;				&amp;lt;xsd:element ref="my:list-item" minOccurs="0" maxOccurs="unbounded"/&amp;gt;&lt;br /&gt;			&amp;lt;/xsd:sequence&amp;gt;&lt;br /&gt;			&amp;lt;xsd:attribute name="is-condition-list" type="xsd:string"/&amp;gt;&lt;br /&gt;			&amp;lt;xsd:attribute name="type" type="xsd:string"/&amp;gt;&lt;br /&gt;		&amp;lt;/xsd:complexType&amp;gt;&lt;br /&gt;	&amp;lt;/xsd:element&amp;gt;&lt;br /&gt;&lt;br /&gt;I can easily populate these "lists" attributes easily in code like this:&lt;br /&gt;&lt;br /&gt;       Dim newListNode As IXMLDOMNode = sectionsNode.ownerDocument.createNode(DOMNodeType.NODE_ELEMENT, "my:list", myNameSpace)&lt;br /&gt;                Dim listType As IXMLDOMAttribute = sectionsNode.ownerDocument.createAttribute("my:type")&lt;br /&gt;                Dim isConditionList As IXMLDOMAttribute = sectionsNode.ownerDocument.createAttribute("my:is-condition-list")&lt;br /&gt;                listType.text = theDeterm.sections(i).list.type&lt;br /&gt;                isConditionList.text = theDeterm.sections(i).list.isconditionlist&lt;br /&gt;                newListNode.attributes.setNamedItem(listType)&lt;br /&gt;                newListNode.attributes.setNamedItem(isConditionList)&lt;br /&gt;&lt;br /&gt;Problem is, whenever I save my form Infopath goes and changes my schema to&lt;br /&gt;&lt;br /&gt;	&amp;lt;xsd:element name="list"&amp;gt;&lt;br /&gt;		&amp;lt;xsd:complexType&amp;gt;&lt;br /&gt;			&amp;lt;xsd:sequence&amp;gt;&lt;br /&gt;				&amp;lt;xsd:element ref="my:list-item" minOccurs="0" maxOccurs="unbounded"/&amp;gt;&lt;br /&gt;			&amp;lt;/xsd:sequence&amp;gt;&lt;br /&gt;			&amp;lt;xsd:attribute ref="my:is-condition-list"/&amp;gt;&lt;br /&gt;			&amp;lt;xsd:attribute ref="my:type"/&amp;gt;&lt;br /&gt;		&amp;lt;/xsd:complexType&amp;gt;&lt;br /&gt;	&amp;lt;/xsd:element&amp;gt;&lt;br /&gt;&lt;br /&gt;Note the attribute ref's.&lt;br /&gt;&lt;br /&gt;I'm not too fussed about that except it breaks my code. Everytime I try to create the attribute and attach it to the node in Managed code (as per above), InfoPath says the attribute doesnt belong.&lt;br /&gt;&lt;br /&gt;This is an example (on another schema element).. and Yep I've checked that it exists and is fine.. it works fine before infopath molests it and changes it to ref=&lt;br /&gt;&lt;br /&gt;System.Runtime.InteropServices.COMException&lt;br /&gt;The attribute 'heading' on the element '&lt;a target="_blank" href=http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-10-31T06-47-55}section'&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-10-31T06-47-55}section'&lt;/a&gt; is not defined in the DTD/Schema.&lt;br /&gt;&lt;br /&gt;   at Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode.appendChild(IXMLDOMNode newChild)&lt;br /&gt;   at Microsoft.Office.Interop.InfoPath.SemiTrust.DOMNodeWrapper.appendChild(IXMLDOMNode newChild)&lt;br /&gt;   at Microsoft.Office.Interop.InfoPath.SemiTrust.DOMNodeWrapper.appendChild(IXMLDOMNode newChild)&lt;br /&gt;   at PlanningDeterminationClient.PlanningDeterminationClient.populateDetermination(PlanningApplicationType thePlanningApp, DeterminationType theDeterm) in C:\Projects\Visual Studio Projects\PlanningDeterminationClient\PlanningDeterminationClient\FormCode.vb:line 294&lt;br /&gt;   at PlanningDeterminationClient.PlanningDeterminationClient.btnRetrieve_OnClick(DocActionEvent e) in C:\Projects\Visual Studio Projects\PlanningDeterminationClient\PlanningDeterminationClient\FormCode.vb:line 185&lt;br /&gt;   at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;br /&gt;</description></item></channel></rss>