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

External DTD loading

I'm a relative XML newbie, but it surprised me to hear that it is
standard practice to have an XML document load the corresponding
DTD from your company's site, e.g.

<!DOCTYPE mytype SYSTEM
"http://www.mycompany.com/products/foo/mytype_1_0.dtd">

We're building a product that has its data stored in an XML format,
and it seems strange to me that our company website will take a hit
every time a customer uses our product. Also there is a performance
issue; not only does it cost time to go fetch a web document, but
what if the customer is not connected to the web?

Of course, one can turn off the extenal DTD loading (which I have),
but it strikes me as odd that going and fetching the DTD should be
the default behavior.

I'm curious to hear how others handle this issue, when using XML as
a data format in a product. Do you just turn off the DTD loading
as I've done, or do you distribute the DTD along with your product
and load it locally? Or just leave things as the default and hope
for the best?
--Mark
Jul 20 '05 #1
2 1684
Hegemony Cricket wrote:
I'm a relative XML newbie, but it surprised me to hear that it is
standard practice to have an XML document load the corresponding
DTD from your company's site, e.g.

<!DOCTYPE mytype SYSTEM
"http://www.mycompany.com/products/foo/mytype_1_0.dtd">

We're building a product that has its data stored in an XML format,
and it seems strange to me that our company website will take a hit
every time a customer uses our product. Also there is a performance
issue; not only does it cost time to go fetch a web document, but
what if the customer is not connected to the web?

Of course, one can turn off the extenal DTD loading (which I have),
but it strikes me as odd that going and fetching the DTD should be
the default behavior.

I'm curious to hear how others handle this issue, when using XML as
a data format in a product. Do you just turn off the DTD loading
as I've done, or do you distribute the DTD along with your product
and load it locally? Or just leave things as the default and hope
for the best?
--Mark


hi,

some features allow to deal with dtd in a smartest manner :
-xml catalogs
-entity resolvers
both are designed to react on outer resources invokation such as dtd,
and are often use to deliver a local copy of these resources

refer to your parser documentation
--
Cordialement,

///
(. .)
-----ooO--(_)--Ooo-----
| Philippe Poulard |
-----------------------
Jul 20 '05 #2
I would like to have a file with the dtd on the server. But I don't know
how to do that ?
The DOM documentation are not very explicit for that, especially with
xerces.

Jul 20 '05 #3

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

Similar topics

4
by: Erohsik | last post by:
I am using external tables to load data from the data file. But the log files are getting created in the datafile's directory (because of CREATE OR REPLACE DIRECTORY ...) But I want those log...
5
by: joaopedrogoncalves | last post by:
Hi, I want to load an external javascript file, get its results and stick them inside a <div> block. I also want to do this in several places on a web page. This way the browser doesn't have...
4
by: Sivakumar Shanmugam | last post by:
Group.. We are running on db2 UDF V8 on Sun solaris platform. I created an UDF which calles a C-routine(SQL_API_FN). This C-routine in turn calls an external C-function. The C-function is provided...
9
by: keith | last post by:
I created a class libery which has name space Assembly and class Assembly and compiled it. Then created a C# project and called a method in the external class e.g. Assembly dll;...
17
by: CES | last post by:
All, I was wondering if their is a way of loading an external script fill from within a script?? <script language="javascript" type="text/javascript"> function test(var){ <script...
1
by: ozzy.osborn | last post by:
Hello All, I have been struggling with a cross browser solution to loading external javascript files on the fly. I have been successful using the following code in IE6: var newScr =...
0
by: John Wright | last post by:
I am trying to load external assemblies that are exe files. I need some help creating an appdomain and loading the assembly. I also want to execute a function on the external assembly to pass...
20
by: Mark Anderson | last post by:
Hi, I have this in an external JS library: ///////////////////////// function addMyEvent(){ var obj; if(document.attachEvent) { obj = document.getElementsByTagName('img'); for...
0
by: wez03 | last post by:
Hi everyone.. I got a problem in loading an external txt into my dynamic text. It says that there are no error in my script but when I publish it, the only thing seen in the text field is...
0
by: whochrisporter | last post by:
Hi, thanks for reading and helping me first of all. Now to the question.. I need to load external images into a scrolling slideshow (its like a sliding rotating banner) flash file using an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.