469,282 Members | 1,701 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

The URI prefix is not recognized.

Hi everybody,

Whenever I load a .HxT/.HxC file thru the XmlDocument::Load function, I get
the error "The URI prefix is not recognized.". How do I resolve the error?

Waiting for reply...
Anupam

Nov 12 '05 #1
5 13138
Hello!
Whenever I load a .HxT/.HxC file thru the XmlDocument::Load function, I get
the error "The URI prefix is not recognized.". How do I resolve the error?


Well, what is the URI prefix? (http? file? Do you use UNC-Paths? Or just
"C:\..")

Maybe you should post some code - at least the XmlDocument::Load-line.

--
Pascal Schmitt
Nov 12 '05 #2
Hi,

The URI prefix is mshelp://

I load the .HxT/.HxC files from local disks. I use the following piece of
code to load the file...

XmlDocument* document=new XmlDocument();
document->Load(filename);

Waiting for reply...
Anupam

"Pascal Schmitt" <ne*******@cebra.nu> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...
Hello!
Whenever I load a .HxT/.HxC file thru the XmlDocument::Load function, I
get
the error "The URI prefix is not recognized.". How do I resolve the
error?


Well, what is the URI prefix? (http? file? Do you use UNC-Paths? Or just
"C:\..")

Maybe you should post some code - at least the XmlDocument::Load-line.

--
Pascal Schmitt

Nov 12 '05 #3
Hello!
The URI prefix is mshelp://

I load the .HxT/.HxC files from local disks. I use the following piece of
code to load the file...

XmlDocument* document=new XmlDocument();
document->Load(filename);


How can the prefix be mshelp:// if you load the file from disk?!

What is the exact content of Ā“filenameĀ“? "ms-help://MS.VSCC.v80/...htm"
or "file://c:/..hxt" or "C:\..hxt"?
--
Pascal Schmitt
Nov 12 '05 #4
I load the .HxC file from this path "C:\Temp.HxC"

The contents of the file are these

<?xml version="1.0"?>
<!DOCTYPE HelpCollection SYSTEM "ms-help://Hx/Resources/HelpCollection.DTD">
<HelpCollection
DTDVersion="1.0"
FileVersion="1.0.0.0"
Title="Temp Html Help 2">

<CompilerOptions OutputFile="Temp_Help.HxS">
<IncludeFile File="Temp_Include_Files.HxF"/>
</CompilerOptions>

<TOCDef File="Temp_Contents.hxt"/>

<KeywordIndexDef File="Temp_Index.hxk"/>

<ItemMoniker Name="!DefaultFullTextSearch" ProgId="HxDs.HxFullTextSearch"
InitData="FTS"/>
<ItemMoniker Name="!DefaultTOC" ProgId="HxDs.HxHierarchy"
InitData="Temp_Contents"/>
<ItemMoniker Name="!DefaultKeywordIndex" ProgId="HxDs.HxIndex"
InitData="K"/>
<ItemMoniker Name="!DefaultAssociativeIndex" ProgId="HxDs.HxIndex"
InitData=""/>
<ItemMoniker Name="!DefaultContextWindowIndex" ProgId="HxDs.HxIndex"
InitData=""/>
<ItemMoniker Name="!DefaultNamedUrlIndex" ProgId="HxDs.HxIndex"
InitData=""/>
</HelpCollection>

The second line in the file is the cause of the failure to load the file...

Anupam

"Pascal Schmitt" <ne*******@cebra.nu> wrote in message
news:Ol**************@TK2MSFTNGP12.phx.gbl...
Hello!
The URI prefix is mshelp://

I load the .HxT/.HxC files from local disks. I use the following piece of
code to load the file...

XmlDocument* document=new XmlDocument();
document->Load(filename);


How can the prefix be mshelp:// if you load the file from disk?!

What is the exact content of “filename“? "ms-help://MS.VSCC.v80/...htm" or
"file://c:/..hxt" or "C:\..hxt"?
--
Pascal Schmitt

Nov 12 '05 #5
Hello!
I load the .HxC file from this path "C:\Temp.HxC"

The contents of the file are these

<?xml version="1.0"?>
<!DOCTYPE HelpCollection SYSTEM "ms-help://Hx/Resources/HelpCollection.DTD"> The second line in the file is the cause of the failure to load the file...


Maybe it helps to use XmlResolver and "remap" the DTD URI to the
Hard-Disk. Or you alter the XML file directly and change the URI or, if
you don't use IDs or Entities just remove the DOCTYPE.
--
Pascal Schmitt
Nov 12 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jacques | last post: by
4 posts views Thread by Krishna Tulasi via .NET 247 | last post: by
10 posts views Thread by dba123 | last post: by
4 posts views Thread by BizTalk Benjamin | last post: by
2 posts views Thread by scottpet | last post: by
2 posts views Thread by Nick C | last post: by
reply views Thread by =?Utf-8?B?bWFydGlqbmthYWc=?= | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.