Re: concatenate several xml files into one big xml/html file?



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


.



Relevant Pages

  • Re: Python strict mode?
    ... > You could write a class with a custom __setattr__method that checks ... "namespaces" for variables simply as different instances of that class. ... which is probably the main reason to use strict mode. ...
    (comp.lang.python)
  • Re: Splitting xml files using Document and Envelope Schemas
    ... Just seemed like once the file was broken up, Biztalk did not recognize it. ... Maybe it would be easier for me to see the schemas, envelope, and sample ... > Well I did have target namespaces set for both schemas. ...
    (microsoft.public.biztalk.general)
  • Re: getting rid of NS0 (name space) in xml tags
    ... our partner is using bts2004 and I'm using ... My envelope/document schemas ... I am not too surprised or bothered that the inbound xml is ... As I know U can ignore the prefixes if U don't want to use the namespaces ...
    (microsoft.public.biztalk.general)
  • Re: Versioning XML Schemas
    ... Never seen the verions in the namespaces. ... Regards, ... Leonid Ganeline, ... > I've seen many schemas and most of the people put version in the target ...
    (microsoft.public.biztalk.general)
  • Re: Versioning XML Schemas
    ... using versions in the namespaces has the same advantage as it has ... with" different schemas in the production environment we'd rather use the ... Vancouver, ... > BizTalk Developer, MCSD, ...
    (microsoft.public.biztalk.general)