H
Hegemony Cricket
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
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