"manual" submit

C

cosmin

hi guys,

I have an InfoPath 2003 template .. and a submit button. When this
button is pressed i check if the url is online (by default i want to
save this form on a sharepoint) and if is not online i do a manual
submit: i create a new xml file with the content of the xml form that
result after submit (when i press on the submit button) and i add some
tags to be a valid infopath form.
...

Some of this:

my form contains on begining:

<my:myFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-08-15T12:29:45"
xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"
xml:lang="en-us"></my:myFields>

and if i save this in a xml file .. on open it will open with IE


now i add some extra tags on a begining of the xml file

<?xml version="1.0" encoding="UTF-8"?><?mso-infoPathSolution
solutionVersion="1.0.0.24" productVersion="11.0.6357"
PIVersion="1.0.0.0"
href="file:///C:\Documents%20and%20Settings\Netrom\Desktop\Template1.xsn"
name="urn:schemas-microsoft-com:eek:ffice:infopath:Template1:-myXSD-myXSD/2006-08-15T12-29-45"
?><?mso-application progid="InfoPath.Document"?>

Now the result is a "valid" infopath form because on open event it open
with infopath .. but i get a error .. somtehing like this:

The element
'{http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-08-15T12:29:45}myFields'
is used but not declared in the DTD/Schema.


Have some ideas .. how i can resolve this ?
Any tips will be great.
Thanks
 
C

cosmin

after that .. if i compare this result file with a valid xml form i see
that is only few difference in the datetime ..
if i put the datetime from the valid xml form .. in my xml i get a
valid infopath file
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top