M
M Ali
Hi,
Here is the scenario:
1. While designing a form in infopath, I put controls on the form.
2. Then i delete some controls.
3. I publish the form.
4. Now when i extract the form .xsn file, both the schema (xsd file)
and the xml file contain the deleted controls as field.
So, what gives?? why are the deleted controls showing in the schema
and xml file??
But when i open the form file in infopath, it doesn't show the deleted
files. So how does infopath know that??
Is there anyway to get the deleted controls removed from the schema
and xml?
Here's the xsd:
Note that the form now has only 3 fields but as you can see all the
delted ones are being kept as well.
_________________________________________________________________________
<xsd:element name="myFields">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:field1" minOccurs="0"/>
<xsd:element ref="my:field2" minOccurs="0"/>
<xsd:element ref="my:field3" minOccurs="0"/>
<xsd:element ref="my:field4" minOccurs="0"/>
<xsd:element ref="my:field5" minOccurs="0"/>
<xsd:element ref="my:field6" minOccurs="0"/>
<xsd:element ref="my:field7" minOccurs="0"/>
</xsd:sequence>
<xsd:anyAttribute processContents="lax"
namespace="http://www.w3.org/XML/1998/namespace"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="field1" type="xsd:string"/>
<xsd:element name="field2" type="xsd:string"/>
<xsd:element name="field3" nillable="true" type="xsd:integer"/>
<xsd:element name="field4" nillable="true" type="xsd:boolean"/>
<xsd:element name="field5" type="xsd:string"/>
<xsd:element name="field6" type="xsd:string"/>
<xsd:element name="field7" type="xsd:string"/>
_________________________________________________________________________
Can anyone help me out here?
Thanks.
ps. I've got the latest Infopath patch but the older one also had this
behavior
Here is the scenario:
1. While designing a form in infopath, I put controls on the form.
2. Then i delete some controls.
3. I publish the form.
4. Now when i extract the form .xsn file, both the schema (xsd file)
and the xml file contain the deleted controls as field.
So, what gives?? why are the deleted controls showing in the schema
and xml file??
But when i open the form file in infopath, it doesn't show the deleted
files. So how does infopath know that??
Is there anyway to get the deleted controls removed from the schema
and xml?
Here's the xsd:
Note that the form now has only 3 fields but as you can see all the
delted ones are being kept as well.
_________________________________________________________________________
<xsd:element name="myFields">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:field1" minOccurs="0"/>
<xsd:element ref="my:field2" minOccurs="0"/>
<xsd:element ref="my:field3" minOccurs="0"/>
<xsd:element ref="my:field4" minOccurs="0"/>
<xsd:element ref="my:field5" minOccurs="0"/>
<xsd:element ref="my:field6" minOccurs="0"/>
<xsd:element ref="my:field7" minOccurs="0"/>
</xsd:sequence>
<xsd:anyAttribute processContents="lax"
namespace="http://www.w3.org/XML/1998/namespace"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="field1" type="xsd:string"/>
<xsd:element name="field2" type="xsd:string"/>
<xsd:element name="field3" nillable="true" type="xsd:integer"/>
<xsd:element name="field4" nillable="true" type="xsd:boolean"/>
<xsd:element name="field5" type="xsd:string"/>
<xsd:element name="field6" type="xsd:string"/>
<xsd:element name="field7" type="xsd:string"/>
_________________________________________________________________________
Can anyone help me out here?
Thanks.
ps. I've got the latest Infopath patch but the older one also had this
behavior