473,231 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

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 13643
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Holger Joukl | last post by:
Hi there, 2 questions regarding build/installation issues: 1. In the python 2.3.3 setup.py script, the detect_modules method of class PyBuildExt contains the following code: 253 if...
3
by: Jacques | last post by:
I'm experiencing the following problem The source xml file uses a prefix (wpl:) and look like this (shortened): ----------------------------------------------------------------- <?xml...
4
by: Krishna Tulasi via .NET 247 | last post by:
Hi, I am having trouble with creation of XML programmatically using .NET. Specifically Im trying to create an element which looks like below and insert into an existing xml doc: <Worksheet...
10
by: dba123 | last post by:
Why am I getting this error for Budget? Error: An exception of type 'System.FormatException' occurred in mscorlib.dll but was not handled in user code Additional information: String was not...
4
by: BizTalk Benjamin | last post by:
Hi, I have an XmlDocument loaded from a memory stream. I set the document element prefix in this way XmlElement e = xDoc.DocumentElement; e.Prefix = "abc" When i simply write the document...
2
by: scottpet | last post by:
Hi, I want to add a namespace prefix to the root node of an object I am serializing to XML. I have been reading though this article:...
30
by: Xah Lee | last post by:
The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations Xah Lee, 2006-03-15 In LISP languages, they use a notation like “(+ 1 2)” to mean “1+2”....
2
by: Nick C | last post by:
Hi I am trying to get a response from a mms:// address. I am using this: Dim wr As HttpWebRequest = WebRequest.Create("mms://<my mms address>>") Dim re As HttpWebResponse = wr.GetResponse()
0
by: =?Utf-8?B?bWFydGlqbmthYWc=?= | last post by:
Hi, In our webapplications we work with global resource files wich are referenced as: <asp:Literal ID="litWaiting" runat="server"...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.