473,385 Members | 1,707 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,385 software developers and data experts.

(very new to XML) Relative SystemLiteral does not seem to work

Hello.

I have a silly XML file and a silly DTD called http://foo/bar/a.xml
and http://foo/bar/a.dtd respectively. They can be validated with
http://validator.w3.org/.

a.xml is as below.
<!DOCTYPE a SYSTEM "http://foo/bar/a.dtd">
<a/>

a.dtd is as below.
<!ELEMENT a EMPTY>

But when I modified "http://foo/bar/a.dtd" to "a.dtd" and validated
them again, I was told 'Fatal Error: cannot find "a.dtd"; tried.'

I think I just used relative URI instead of absolute one where
SystemLiteral was expected. What was wrong?

Thank you.
Jul 20 '05 #1
2 1505
Did you upload the file? If so, it doesn't know the document base. If not,
don't know. The relative URI should be fine.

Bob Foster

"Kiwi" <ki**@s05.itscom.net> wrote in message
news:dc**************************@posting.google.c om...
Hello.

I have a silly XML file and a silly DTD called http://foo/bar/a.xml
and http://foo/bar/a.dtd respectively. They can be validated with
http://validator.w3.org/.

a.xml is as below.
<!DOCTYPE a SYSTEM "http://foo/bar/a.dtd">
<a/>

a.dtd is as below.
<!ELEMENT a EMPTY>

But when I modified "http://foo/bar/a.dtd" to "a.dtd" and validated
them again, I was told 'Fatal Error: cannot find "a.dtd"; tried.'

I think I just used relative URI instead of absolute one where
SystemLiteral was expected. What was wrong?

Thank you.

Jul 20 '05 #2
Kiwi wrote:
Hello.

I have a silly XML file and a silly DTD called http://foo/bar/a.xml
and http://foo/bar/a.dtd respectively. They can be validated with
http://validator.w3.org/.

These files are at http://foo ?
There's no such thing as http://foo - if there was foo would be a top
level domain, and it's not. Unless there's some server trick here I'm
missing?

- Rob

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Brian Burgess | last post by:
Hi All, Anyone having trouble 'Load'ing xml files with 'Msxml2.DOMDocument' in ASP? The Server is IIS 5.1 and client is PocketPC2002 (Pocket IE). The 'Load' method is always returning 'False'...
15
by: Nick K. | last post by:
I recently began maintenance work on a production web server that is located in the root directory of a web server. I moved this into a sub web on my local web server in order to do work on it. I...
1
by: Victor Porton | last post by:
What can be and what should be xml:base attribute? Should/can it end with a slash? What to do if it doesn't end with a slash? If xml:base="http://xxx.org/aaa/" anything is clear. But what if...
5
by: Razvan | last post by:
Hi ! In an XML DOCTYPE declaration you can use either PUBLIC or SYSTEM attributes: <!DOCTYPE RootElement SYSTEM "SomeDTD.dtd">
8
by: James Owens | last post by:
I'm a relative newbie, interested in storing the information from several server directories and subdirectories in XML so that I can present it selectively using XSL (all files updated today or...
4
by: Paul M | last post by:
Larry, i've got an xml file which has multiple cities as the top level item. When i read it in using XMLReader, and define the variables, as below, it finds the correct number of cities in the...
2
by: Steve Franks | last post by:
I am familiar with the fact that you have to use runat=server and links staring with "~/" to ensure proper mapping of paths to relative URLs when using master pages. However this does not seem to...
8
by: SL | last post by:
I try to validate against a schema a document stored in several files thanks to external entities. The parseur add a 'xml:base="url"' attribute on the root element of this sub-trees during parsing,...
112
by: Prisoner at War | last post by:
Friends, your opinions and advice, please: I have a very simple JavaScript image-swap which works on my end but when uploaded to my host at http://buildit.sitesell.com/sunnyside.html does not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.