Microsoft KB Archive/923525

= You may see an HTML rendering of an .xml file data connection in the Data Source task pane of Microsoft Office InfoPath 2007 =

Article ID: 923525

Article Last Modified on 11/3/2006

-

APPLIES TO


 * Microsoft Office InfoPath 2007

-





SYMPTOMS
When you view the data source structure of a secondary .xml file data connection in the Data Source task pane of Microsoft Office InfoPath 2007, you may see an HTML rendering of that file instead of the XML data structure.



CAUSE
This behavior occurs because the following conditions are true:
 * You use the .xml file as the data connection.
 * The .xml file contains a Microsoft Office InfoPath Processing Instruction.

When InfoPath sends a Web request to create a connection, Microsoft Windows SharePoint Services redirects the request to InfoPath Forms Services. Then, InfoPath Forms Services returns an HTML rendering of the file.



WORKAROUND
To work around this behavior, append the following string to the data connection URL:

?noredirect=true

The data connection URL will resemble the following:

http:// / / .xml?noredirect=true

Note  is a placeholder for the name of the computer that is running Microsoft Office SharePoint Portal Server.

is a placeholder for the name of the library where you store the uploaded XML file.

is a placeholder for the name of the file that has an InfoPath Processing Instruction.



STATUS
This behavior is by design.



Steps to reproduce the behavior
 Upload an .xml file that has an InfoPath Processing Instruction to an Office SharePoint Server library. Start Microsoft Office InfoPath 2007. Click Design a Form Template, click to select the Enable browser-compatible features only check box, select Blank, and then click OK. Add a data connection to the uploaded InfoPath form. To do this, follow these steps:  On the Tools menu, click Data Connections. Click Add, select Create a new connection to, select Receive Data, and then click Next.</li> Select XML document, and then click Next.</li> Enter the URL of the library that contains the .xml file that you uploaded in step 1, and then click Next. For example, you may enter the following URL:

http:// / / .xml

</li> Select Include the data as a resource file in the template or Access the data from the specified location, and then click Next.</li> Click Finish, and then click Close.</li></ol> </li> Click Design Tasks, and then click Data Source.</li> In the Data source list, select the data source that you created in step 3.</li></ol>

You will see the HTML rendering of the .xml file instead of the XML data structure.

Keywords: kbtshoot kbexpertiseinter kbprb KB923525

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.