Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: IXMLDOMDocument::Load long pathname support [Thread Next] Re: IXMLDOMDocument::Load long pathname supportTo: NULL Date: 6/11/2008 3:50:00 PM
"Martin Honnen" <mahotrash@y...> wrote in message
news:%23jUbI49yIHA.3972@T......
> mohit.jha@g... 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.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
