To create my forms I am using IP2007. Because the people who should use that form are working also with 2007.
At
the moment I have the problem that I am not able to add the schema
location into my XML head in combination with the xsn file. I am able to
change that property, when I am working with the source files. But when
I am saving everything with InfoPath as an xsn file, all changes don't
work any more.
That is what I want to have:
<?xml version="1.0" encoding="ISO-8859-1"?>
<MyXML
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.myXML.org/XMLSchema/4.0.1"
xsi:schemaLocation="http://www.myXML.org/XMLSchema/4.0.1
MySchema4.0.1.xsd">
And this is what I get:
<?xml version="1.0" encoding="UTF-8"?>
[...]
<ns1:MyXML
xmlns:altova="http://www.altova.com/xml-schema-extensions"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns1="http://www.myXML.org/XMLSchema/4.0.1"
xmlns:xd="http://schemas.microsoft.com/office/infopath/2003">
The
schemaLocation property is important for the validation of the XML.
Without that information e.g. Altova XML Spy can not validate the file.
I
searched for solutions, but I didn't found anything that works. Is
there an easy way to solve this in IP2007 or a newer version?