Re: [xml] standard dtd?!

Daniel Veillard wrote:
On Sun, Jul 27, 2003 at 06:49:41PM +0200, Thomas Rokohl wrote:

how can i specify the dtd-file in my program and not in the xml-file?

  You should not.

Have you read the doc ?
  use canonical URL
  how to write you own entity loader
  the catalog solution

There is many way to do it cleanly, what you seems to do is one one
the wrong solutions to a common problem.


I've read the guidelines and the catalog and fixed my software (which was using
file-system local dtds). Now one question is left for me. You've written that
libxml2 is searching by default under '/etc/xml/catalog' for thye presence of
the catalog. My software build on cygwin as well. Is there any recommendation
for a default place of the catalog. (I've grepped the source and found the
reference in catalog.c and xmllint.c).

      \|/            Stefan Kost
     <@ @>           private            business
+-oOO-(_)-OOo------------------------------------------------------ - - -  -   -
|       __  Address  Simildenstr. 5     HTWK Leipzig, Fb IMN, Postfach 301166
|      ///           04277 Leipzig      04277 Leipzig
| __  ///            Germany            Germany
| \\\///    Phone    +49341 2253538     +49341 30766101
|  \__/     EMail
|           WWW
===-=-=--=---=---------------------------------- - - -  -    -

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]