Microsoft KB Archive/887035

= Your XML data may appear to incorrectly import when you try to import that data to Microsoft Office Access 2003 or Microsoft Office Access 2007 =

Article ID: 887035

Article Last Modified on 3/30/2007

-

APPLIES TO


 * Microsoft Office Access 2007
 * Microsoft Office Access 2003

-





SYMPTOMS
Your XML data may appear to incorrectly import when you try to import that data to Microsoft Office Access 2003 or Microsoft Office Access 2007.



CAUSE
This behavior may occur when your XML data contains carriage return line feeds (CRLF) as part of the data. However, the data does successfully import.



RESOLUTION
To see that your XML data successfully imports, you have to increase the cell height of the table cells so that you can see the data. CRLF causes a blank line above the data. To see the data, follow these steps:
 * 1) In your table, click one of the cells.
 * 2) Click and hold the line under the arrow on the left of the table. Then, drag down to increase the row height.

'''

Note''' All data in the table appears.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



Steps to reproduce the behavior
 Click Start, click Run, type Notepad, and then click OK.  Put the following code example in Notepad.   NC   TX</State> </States>  WA</State> </States>  NY</State> </States>  CA</State> </States> </li> Click File, and then click Save. In the File name box, type States1.xml, and then click Save.</li> Close Notepad.</li> Click Start, click Run, type Notepad, and then click OK.</li>  Put the following code example in Notepad. <?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>  NC</State> </States>  TX </State> </States>  <State> WA </State> </States> <States> <State> NY</State> </States> <States> <State>CA</State> </States> </li> <li>Click File, click Save, type States2.xml, and then click Save.</li> <li>Close Notepad.</li></ol>

Access 2003
<ol> <li>Start Access 2003.</li> <li>On the File menu, click New. In the Task pane, click Blank database, and then click Create.</li> <li>Click File, point to Get External Data, and then click Import.</li> <li>In the Import dialog box, click the folder in the Look in box in which you saved the file in step 3. In the File name box, type States1.xml, and then click Import.</li> <li>In the Import XML dialog box, click OK.</li> <li>In the Microsoft Office Access box, click OK.</li> <li>In the Database window, click Tables in the Objects pane, and then double-click the States table.

Note The States table opens, and the data correctly appears.</li> <li>Click File, point to Get External Data, and then click Import.</li> <li>In the Import dialog box, click the folder in the Look in box in which you saved the file in step 7. In the File name box, type States2.xml, and then click Import.</li> <li>In the Import XML dialog box, click OK.</li> <li>In the Microsoft Office Access box, click OK.</li> <li>In the Database window, click Tables in the Objects pane, and then double-click the States1 table.

Note The States1 table appears to be missing &quot;WA&quot; and &quot;NY.&quot; However, &quot;WA&quot; and &quot;NY&quot; are there. To see &quot;WA&quot; and &quot;NY,&quot; follow these steps: <ol style="list-style-type: lower-alpha;"> <li>In the States1 table, click WA.</li> <li>Click and hold the line under the arrow on the left of the table. Then, drag down to increase the row height.

Note You can now see all the data in the table. &quot;WA&quot; and &quot;NY&quot; have blank lines above them. Therefore, you cannot see them unless you increase the row height.</li></ol>

If you open either States1.xml or States2.xml by using Windows Internet Explorer, the data correctly appears.</li></ol>

Access 2007
<ol> <li>Start Access 2007.</li> <li>Click the Microsoft Office Button, click New, and then click Create to create a new blank database.</li> <li>Click the External Data tab, and then click XML File in the Import group.</li> <li>Click Browse, locate States1.xml, click Open, and then click OK.</li> <li>Click OK in the Import XML dialog box, and then click Close.</li> <li>Repeat steps 3-5 to import States2.xml.</li> <li>Double-click the States1 table in the left pane.

Note The States1 table appears to be missing &quot;WA&quot; and &quot;NY.&quot; However, &quot;WA&quot; and &quot;NY&quot; are there. To see &quot;WA&quot; and &quot;NY,&quot; follow these steps: <ol style="list-style-type: lower-alpha;"> <li>In the States1 table, click WA.</li> <li>Click and hold the line under the arrow on the left of the table. Then, drag down to increase the row height.

Note You can now see all the data in the table. &quot;WA&quot; and &quot;NY&quot; have blank lines above them. Therefore, you cannot see them unless you increase the row height.</li></ol>

If you open either States1.xml or States2.xml by using Internet Explorer, the data correctly appears.</li></ol>

Additional query words: ACC2007

Keywords: kbtshoot kbprb kbinfo KB887035

-

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

© Microsoft Corporation. All rights reserved.