Re: Why XML to comunicate Distributed Components?




"carofe" <carlosrf82@xxxxxxxxx> wrote in message
news:13b64c37-dbeb-4814-88bc-527d2d42beaf@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Well, the purposing of this post is to find good reason about xml
technology as message format.
My question is: Why the communication between components should be
XML?

XML has some features as self-described, human-readable, etc..., and
there are many tools for validation and parsing.
Those features are very useful for Configuration files and
Descriptions file which could be edited by humans.
But, Are those features necessaries to communicate two components? Is
it necessary that communication between two component being human-
readable?
About self-described:
Self-described messages is useful for computing, I mean, validations,
infering, etc... But, Is it necessary the message in Plain Text
format?.
Which are the benefit of use XML to communicate components?

I think you already answered your question. XML has the benefits you mention
above but if the two components that exchange data don't require a
self-describing, human-readable and character based format why would you
incur the overhead of formatting and parsing the data? If you don't care
about human-readable you can go to binary XML or similar. If you don't care
about self-describing you can just send your data structures as raw bytes.
If you go to a binary format you have to keep endian and alignment issues in
mind, of course.

Andrew



.



Relevant Pages

  • Re: Why XML to comunicate Distributed Components?
    ... technology as message format. ... Why the communication between components should be ... Which are the benefit of use XML to communicate components? ... case with the real needs of SOAP message format ...
    (comp.object)
  • Re: Sane Syntax
    ... vital role in the future of TeX but we need some more human friendly ... Generating well formed LaTeX2e documents from XML ... Another approach is to convert existing documents to XML format and go ... TEI, together with DocBook, are the two ...
    (comp.text.tex)
  • Re: XHTML vs HTML
    ... to be the predominant type of HTML used on the web for many years yet. ... First, it is XML. ... XHTML is also ... transformed using XSL from and into virtually *any* other data format. ...
    (microsoft.public.frontpage.programming)
  • Re: text to bibliography?
    ... to xml: you can store binary data in an xml file. ... including your well-formattedbibliography(no longer in xml format). ... It is in annotated bibliographies (something Word 2007 does not ... that %I is actually the field representing the publisher. ...
    (microsoft.public.word.docmanagement)
  • Re: Future of LISP. Alternative to XML. Web 3.0?
    ... using s-expressions instead of XML, nobody is going to use it, ... because it's cheaper to keep the existing XML software and continue ... XML-MAIDEN format or to HTML format and next displayed via standard ... or a CanonML or LISP browser. ...
    (comp.lang.lisp)