Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Wed, 11 Jun 2008 08:33:13 -0700 (PDT),    group: microsoft.public.xml        back       


IXMLDOMDocument::Load long pathname support   
the api IXMLDOMDocument::Load fails if the filename has more than 256
charcters, i do not want to use loadXML, is there any way to enable it
to take files with long file name
date: Wed, 11 Jun 2008 08:33:13 -0700 (PDT)   author:   unknown

Re: IXMLDOMDocument::Load long pathname support   
mohit.jha@gmail.com wrote:
> the api IXMLDOMDocument::Load fails if the filename has more than 256
> charcters, i do not want to use loadXML, is there any way to enable it
> to take files with long file name

Which version of MSXML are you using?


-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/
date: Wed, 11 Jun 2008 17:35:48 +0200   author:   Martin Honnen

Re: IXMLDOMDocument::Load long pathname support   
4.0
On Jun 11, 8:35 pm, Martin Honnen  wrote:
> mohit....@gmail.com wrote:
> > the api IXMLDOMDocument::Load fails if the filename has more than 256
> > charcters, i do not want to use loadXML, is there any way to enable it
> > to take files with long file name
>
> Which version of MSXML are you using?
>
> --
>
>         Martin Honnen --- MVP XML
>        http://JavaScript.FAQTs.com/
date: Wed, 11 Jun 2008 08:44:42 -0700 (PDT)   author:   unknown

Re: IXMLDOMDocument::Load long pathname support   
mohit.jha@gmail.com wrote:
> 4.0

The MSXML SDK says that load takes a URL as a string and I can't believe 
that it fails if the URL is longer than 256 characters.
What value exactly do you pass to the load method?
What error do you get?
Have you tried to use a file: URL e.g.
file:///C:/dir/subdir/subsubdir/file.xml?


-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/
date: Wed, 11 Jun 2008 18:13:04 +0200   author:   Martin Honnen

Re: IXMLDOMDocument::Load long pathname support   
"Martin Honnen"  wrote in message 
news:%23jUbI49yIHA.3972@TK2MSFTNGP03.phx.gbl...
> mohit.jha@gmail.com wrote:
>> 4.0
>
> The MSXML SDK says that load takes a URL as a string and I can't believe 
> that it fails if the URL is longer than 256 characters.
> What value exactly do you pass to the load method?
> What error do you get?
> Have you tried to use a file: URL e.g.
> file:///C:/dir/subdir/subsubdir/file.xml?
>
>
> -- 
>
> Martin Honnen --- MVP XML
> http://JavaScript.FAQTs.com/


Probably the limitation is a Windows limitation. The VC header stdlib.h has 
the following define:

    #define _MAX_PATH   260 /* max. length of full pathname */

The comment says that it is for "Sizes for buffers used by the _makepath() 
and _splitpath() functions." but that symbolic name is used frequently in 
the Windows samples. The value 256 or 260 is documented somewhere as the 
maximum size of a Windows filename without using the "UNC" (Universal Naming 
Code) format. I think the sample file URL above does not use the UNC format 
but I am not sure.
date: Wed, 11 Jun 2008 15:50:20 -0700   author:   Sam Hobbs _change_social_to_socal

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us