Jump to content

Talk:Comparison of data-serialization formats: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
SeanJA (talk | contribs)
Bhjn (talk | contribs)
Added suggestions for this article
Line 7: Line 7:


[[User:SeanJA|SeanJA]] ([[User talk:SeanJA|talk]]) 05:31, 12 September 2009 (UTC)
[[User:SeanJA|SeanJA]] ([[User talk:SeanJA|talk]]) 05:31, 12 September 2009 (UTC)

== Suggestions ==

A common term for "data serialization format" is encoding. You may want to include in this comparison:

* XDR (from Sun): [[External_Data_Representation]]
* CORBA CDR: [[Common_Data_Representation]]
* The Ice encoding: see [[Internet_Communications_Engine]] and http://www.zeroc.com/doc/Ice-3.3.1/manual/Protocol.39.2.html



== This section is in the wrong place ==
== This section is in the wrong place ==

Revision as of 00:31, 31 October 2009

Reason for this article

This content was a long list in the main XML article. I removed the list to put it here, because the XML article is already very long. Hervegirod (talk) 00:45, 6 August 2009 (UTC)[reply]

I don't think this article should be deleted if it is still up for deletion. There are lots of these articles, they are useful for finding out information and comparing different things quickly.

SeanJA (talk) 05:31, 12 September 2009 (UTC)[reply]

Suggestions

A common term for "data serialization format" is encoding. You may want to include in this comparison:


This section is in the wrong place

This section should be on the XML page...

XML

Advantages

  • XML provides a basic syntax that can be used to share information between different kinds of computers, different applications, and different organizations. XML data is stored in plain text format.[1] This software- and hardware-independent way of storing data allows different incompatible systems to share data without needing to pass them through many layers of conversion. This also makes it easier to expand or upgrade to new operating systems, new applications, or new browsers, without losing any data.
  • It supports Unicode, allowing almost any information in any written human language to be communicated.
  • It can represent common computer science data structures: records, lists and trees.
  • Its self-documenting format describes structure and field names as well as specific values.
  • The strict syntax and parsing requirements make the necessary parsing algorithms extremely simple, efficient, and consistent.
  • Content-based XML markup enhances searchability, making it possible for agents and search engines to categorize data instead of wasting processing power on context-based full-text searches.
  • The hierarchical structure is suitable for most (but not all) types of documents.
  • It is platform-independent, thus relatively immune to changes in technology.
  • Its predecessor, SGML, has been in use since 1986, so there is extensive experience and software available.

Disadvantages

  • XML syntax is redundant or large relative to binary representations of similar data,[2] especially with tabular data.
  • The redundancy may affect application efficiency through higher storage, transmission and processing costs.[3][4]
  • XML syntax is verbose, especially for human readers, relative to other alternative 'text-based' data transmission formats.[5][6]
  • The hierarchical model for representation is limited in comparison to an object oriented graph.[7][8]
  • Expressing overlapping (non-hierarchical) node relationships requires extra effort.[9]
  • XML namespaces are problematic to use and namespace support can be difficult to correctly implement in an XML parser.[10]
  • XML is commonly depicted as "self-documenting" but this depiction ignores critical ambiguities.[11][12]
  • The distinction between content and attributes in XML seems unnatural to some and makes designing XML data structures harder.[13]
  • Transformations, even identity transforms, result in changes to format (whitespace, attribute ordering, attribute quoting, whitespace around attributes, newlines). These problems can make diff-ing the XML source very difficult except via Canonical XML.
  1. ^ "How Can XML be Used?". W3schools.com. Retrieved 2009-07-31.
  2. ^ Harold, Elliotte Rusty (2002). Processing XML with Java(tm): a guide to SAX, DOM, JDOM, JAXP, and TrAX. Addison-Wesley. ISBN 0201771861.XML documents are too verbose compared with binary equivalents.
  3. ^ Harold, Elliotte Rusty (2002). XML in a Nutshell: A Desktop Quick Reference. O'Reilly. ISBN 0596002920. XML documents are very verbose and searching is inefficient for high-performance largescale database applications.
  4. ^ However, the Binary XML effort strives to alleviate these problems by using a binary representation for the XML document. For example, the Java reference implementation of the Fast Infoset standard parsing speed is better by a factor 10 compared to Java Xerces, and by a factor 4 compared to the Piccolo driver, one of the fastest Java-based XML parser [1].
  5. ^ Bierman, Gavin (2005). Database Programming Languages: 10th international symposium, DBPL 2005 Trondheim, Norway. Springer. ISBN 3540309519.XML syntax is too verbose for human readers in for certain applications. Proposes a dual syntax for human readability.
  6. ^ Although many purportedly "less verbose" text formats actually cite XML as both inspiration and prior art. See e.g., http://yaml.org/spec/current.html, http://innig.net/software/sweetxml/index.html, http://www.json.org/xml.html.
  7. ^ A hierarchical model only gives a fixed, monolithic view of the tree structure. For example, either actors under movies, or movies under actors, but not both.
  8. ^ Lim, Ee-Peng (2002). Digital Libraries: People, Knowledge, and Technology. Springer. ISBN 3540002618.Discusses some of the limitation with fixed hierarchy. Proceedings of the 5th International Conference on Asian Digital Libraries, ICADL 2002, held in Singapore in December 2002.
  9. ^ Searle, Leroy F. (2004). Voice, text, hypertext: emerging practices in textual studies. University of Washington Press. ISBN 0295983051. Proposes an alternative system for encoding overlapping elements.
  10. ^ (See e.g., http://www-128.ibm.com/developerworks/library/x-abolns.html )
  11. ^ "The Myth of Self-Describing XML" (PDF). Retrieved 2007-05-12.
  12. ^ (See e.g., Use–mention distinction, Naming collision, Polysemy)
  13. ^ "Does XML Suck?". Retrieved 2007-12-15.(See "8. Complexity: Attributes and Content")