Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
When trying to export xml from a web url we have noticed some really weird behaviour. The xml is off the following format: <Items <Item <Sample1</Sample1 <Sample2</Sample2 </Item <Item <Sample1</Sample1 <Sample2</Sample2 </Item etc However if you try and import it you get the first two rows as: /Items /Item/Sample1 /Item/Sample2 We stumbled across a workaround for the /Items problem by changing the Items element definition to the following: <Items xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" The import then will just import the data - any ideas why adding this namespace seemed to fix the problem? Excel also appears to ignore any inline schema we specify in the import xml - is it possible to specify an inline schema? The setting up a schema map is not the most end user friendly approach for us to take. However using the above workaround we have stumbled across another problem when trying to import from a really really long url. Firstly the url is too long to paste so you have to navigate to it using the "New Web Query" browser. The xml is displayed in the "New Web Query" browser, but when you select the data source the displayed in excel contains the /Items and /Item/etc rows described above. Also when this problem happens the data is not included in a table! Any idea why this may be? Thanks Donal |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
import XML data...Is there a size limit on the import? | Excel Discussion (Misc queries) | |||
How to Start Excel in Text Import Wizard for data import | Setting up and Configuration of Excel | |||
PLEASE!! How can I un-grey the 'Data-Import External Data-Import Data' option ??? | Excel Programming | |||
Weirdness | Excel Programming | |||
VBA IDE Weirdness.... | Excel Programming |