Re: concatenate several xml files into one big xml/html file?
- From: "idiotprogrammer" <idiotprogrammer@xxxxxxxxx>
- Date: 5 Mar 2007 09:27:11 -0800
So schemas allow you to incorporate different namespaces, but DTD's do
not. That is useful information.
I'll try it out.
rj
On Mar 5, 9:21 am, Joseph Kesselman <keshlam-nos...@xxxxxxxxxxx>
wrote:
idiotprogrammer wrote:
is it better to try to embed one flavor of xml within another? Or is
better to create a custom xml/schema that takes into account your
unique situation?
It Depends.
If there's an XML-based and moderately-well-standardized language which
naturally describes what you want to describe, you probably don't want
to reinvent the wheel. One of the purposes of namespaces is specifically
to allow independently-developed grammars to be intermixed without the
risk of their trying to assign conflicting meanings to the same tokens.
(Note, however, that DTDs are inherently incompatable with namespaces;
if you want to do modern XML design you're sorta forced toward XML
Schemas... or toward one of their less-standard competetors)
On the other hand, if there isn't an existing language which is a good
fit, or if you don't trust the one you've found to be stable enough for
your needs, or if has features which would constitute a security risk in
your environment, you may want to reimplement and make that part of your
own custom grammar. As suggested above, the lack of namespace support in
DTDs makes collisions more common and is more likely to force
reimplementation as a result.
In other words, it's the same answer as with any other code reuse
question. Reuse can be a great productivity enhancer when the right
tools and libraries are available, or it can be a pain in the arse when
they aren't.
--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
.
- Follow-Ups:
- Re: concatenate several xml files into one big xml/html file?
- From: Joseph Kesselman
- Re: concatenate several xml files into one big xml/html file?
- References:
- concatenate several xml files into one big xml/html file?
- From: idiotprogrammer
- Re: concatenate several xml files into one big xml/html file?
- From: idiotprogrammer
- Re: concatenate several xml files into one big xml/html file?
- From: Joseph Kesselman
- concatenate several xml files into one big xml/html file?
- Prev by Date: Re: Attribute value and blank entity
- Next by Date: RE: saving xml in javascript
- Previous by thread: Re: concatenate several xml files into one big xml/html file?
- Next by thread: Re: concatenate several xml files into one big xml/html file?
- Index(es):
Relevant Pages
|