I create a link on a HTML-page to an XML-document, that was created
with InfoPath. (Everything local on my machine, Win XP)
When I click the link the document opens in InfoPath --> That's what I
want.
Question 1:
On some computers in our office (Win XP, InfoPath and IE 6 installed)
the same xml-file is not opening in InfoPath but in Internet Explorer.
That only happens, if we try to open the document from a link. If we
double-click the xml-file, then it opens in InfoPath.
I think that IE on these computers somehow ignores the InfoPath
processing instructions.
Does anybody know, how this could be fixed?
Question 2:
If we use Netscape 7 and try to open an infopath-created xml-file only
the xml-data will be displayed within the browser window. Is there a
way to tell netscape, that it should use InfoPath to open
xml-documents?
Thank you
Caspar
Brian Teutsch [MSFT] - 03 Sep 2004 18:49 GMT
I believe you'll need to be sure that you're sending "text/xml" as the
content type, and not including any character-encoding. Check some old
newsgroup posts about this.
Brian
>I create a link on a HTML-page to an XML-document, that was created
> with InfoPath. (Everything local on my machine, Win XP)
[quoted text clipped - 23 lines]
> Thank you
> Caspar
G. Tarazi - 06 Sep 2004 14:38 GMT
I don't know about Netscape, but for IE make sure the content type is
application/ms-infopath.xml
If you decide to go with an aspx page that prints the xml in order to start InfoPath, it will be similar to this:
this.Response.ContentType = "application/ms-infopath.xml";
this.Response.Write("<?xml version=\"1.0\"?>");
this.Response.Write("the InfoPath processing instructions here");
this.Response.Write("the InfoPath xml here");
> I believe you'll need to be sure that you're sending "text/xml" as the
> content type, and not including any character-encoding. Check some old
[quoted text clipped - 29 lines]
> > Thank you
> > Caspar