Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Setting the namespace when doing a SaveAsXMLData

It seems that Excel picks
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance as the namespace when
saving mapped cells to a datafile. How do you set this to something
different or not have a xmlns attribute in the root at all?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Setting the namespace when doing a SaveAsXMLData

Try checking you setting in DOS. I'm not sure if excel is one of the following

1) Excel Menu - Tools - Option - General - Default file Location

2) A mapped Netwrok drive

3) An environmental variable

START - Run - cmd.exe (Opens DOS window). The in DOS type SET. This
returns the environmental variables.

"jeffbanjo" wrote:

It seems that Excel picks
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance as the namespace when
saving mapped cells to a datafile. How do you set this to something
different or not have a xmlns attribute in the root at all?

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Setting the namespace when doing a SaveAsXMLData

Thanks - I looked in your suggestions and still didn't find the setting.
They must have it somewhere, but I haven't found it documented! Is there a
way to do this by setting the xmlns:xsi attribute for the root element?
I've seen the setAttribute function for an xml element but don't know how to
get the element object for the root element in a mapped xml app (I don't use
a loaded xmldoc object -My app maps cells to xml elements using an xmlmap and
then writes the sheet back out in xml). Somewhere in the xmlMap object?
I'm kinda new to xml programming in Excel - a few examples in the
documentation but not real good coverage.
Thanks,
Jeff

"Joel" wrote:

Try checking you setting in DOS. I'm not sure if excel is one of the following

1) Excel Menu - Tools - Option - General - Default file Location

2) A mapped Netwrok drive

3) An environmental variable

START - Run - cmd.exe (Opens DOS window). The in DOS type SET. This
returns the environmental variables.

"jeffbanjo" wrote:

It seems that Excel picks
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance as the namespace when
saving mapped cells to a datafile. How do you set this to something
different or not have a xmlns attribute in the root at all?

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Setting the namespace when doing a SaveAsXMLData

Check in the microsoft office directory

C:\Program Files\Microsoft Office

There is a XLSTART and a HTML where you may be able to set the defaults.

You can use the Window Expl;orer search on this directory and see if you
find the string http://www.w3.org/2001/XMLSchema-instance .

"jeffbanjo" wrote:

Thanks - I looked in your suggestions and still didn't find the setting.
They must have it somewhere, but I haven't found it documented! Is there a
way to do this by setting the xmlns:xsi attribute for the root element?
I've seen the setAttribute function for an xml element but don't know how to
get the element object for the root element in a mapped xml app (I don't use
a loaded xmldoc object -My app maps cells to xml elements using an xmlmap and
then writes the sheet back out in xml). Somewhere in the xmlMap object?
I'm kinda new to xml programming in Excel - a few examples in the
documentation but not real good coverage.
Thanks,
Jeff

"Joel" wrote:

Try checking you setting in DOS. I'm not sure if excel is one of the following

1) Excel Menu - Tools - Option - General - Default file Location

2) A mapped Netwrok drive

3) An environmental variable

START - Run - cmd.exe (Opens DOS window). The in DOS type SET. This
returns the environmental variables.

"jeffbanjo" wrote:

It seems that Excel picks
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance as the namespace when
saving mapped cells to a datafile. How do you set this to something
different or not have a xmlns attribute in the root at all?

Thanks!

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Setting the namespace when doing a SaveAsXMLData

I only found it in a VisualC template header. Not in the registery either.
I guess I'll just live with it at this point. Probably hiding in some
option setting somewhere.... Thanks for the ideas - let me know if you
stumble on anything else.
Thanks!

"Joel" wrote:

Check in the microsoft office directory

C:\Program Files\Microsoft Office

There is a XLSTART and a HTML where you may be able to set the defaults.

You can use the Window Expl;orer search on this directory and see if you
find the string http://www.w3.org/2001/XMLSchema-instance .

"jeffbanjo" wrote:

Thanks - I looked in your suggestions and still didn't find the setting.
They must have it somewhere, but I haven't found it documented! Is there a
way to do this by setting the xmlns:xsi attribute for the root element?
I've seen the setAttribute function for an xml element but don't know how to
get the element object for the root element in a mapped xml app (I don't use
a loaded xmldoc object -My app maps cells to xml elements using an xmlmap and
then writes the sheet back out in xml). Somewhere in the xmlMap object?
I'm kinda new to xml programming in Excel - a few examples in the
documentation but not real good coverage.
Thanks,
Jeff

"Joel" wrote:

Try checking you setting in DOS. I'm not sure if excel is one of the following

1) Excel Menu - Tools - Option - General - Default file Location

2) A mapped Netwrok drive

3) An environmental variable

START - Run - cmd.exe (Opens DOS window). The in DOS type SET. This
returns the environmental variables.

"jeffbanjo" wrote:

It seems that Excel picks
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance as the namespace when
saving mapped cells to a datafile. How do you set this to something
different or not have a xmlns attribute in the root at all?

Thanks!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem using obj.Namespace(sourceFileName) Namespace(DestinationFilename).Itemsand then opening the xls file which creates a Temp Folder inside Temp Yuvraj Excel Discussion (Misc queries) 3 May 3rd 09 11:59 AM
CreateObject - Namespace variable Conan Kelly Excel Programming 0 January 4th 07 11:30 PM
namespace.pickfolder Steve[_63_] Excel Programming 2 September 1st 05 12:39 PM
Macro looking to Outlook for namespace. gobjob Excel Programming 1 July 26th 05 11:58 PM
Automation Adding XmlMaps & SaveAsXMLData in Excel Peter Torr \(MS\) Excel Programming 0 February 29th 04 06:16 AM


All times are GMT +1. The time now is 10:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"