Is toolability even a word or is this another microsquashism?

;o)


Arron

[EMAIL PROTECTED] wrote: -----

To: [EMAIL PROTECTED]
From: Gerald Bauer <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
Date: 04/08/2004 09:34AM
Subject: [xul-talk] Blogstory Spotlight: XAML vs. Serialization by Chris Anderson 
(Microsoft)

Hello,

allow me to highlight the blog story titled "XAML
vs. Serialization" by Microsoft Longhorn/Avalon/XAML
architect Chris Anderson.

Chris writes:

Marc Clifton seems a bit frustrated that XAML isn't
the end all be all serialization engine. XAML is a
general purpose markup format, but in Longhorn there
will be a new general purpose serialization engine.

XAML was designed to be a compromise markup format,
that balanced the toolability and readability aspects
of a markup. You can think of HTML as a markup that
was squarely designed to be readable, but not very
toolable. SOAP on the other hand is very toolable, but
almost impossible to read. In the design of XAML we
constantly walk the line between the two. XAML has
support for inline code, customer parser extensions,
and multiple representations of the same structure.

In Longhorn there will be a new serialization engine
in WinFX. The goal of this new engine is to unify the
scenarios addressed by the XmlSerializer,
SoapFormatter, and BinaryFormatter. This engine
(residing in the existing System.Runtime.Serialization
namespace) will allow serialization and
deserialization of any CLR object graph (graph is a
carefully chosen word here) to a variety of different
formats (including XML and your own custom ones, if
you wish).

Lets compare the two methods:

XAML

* Objects must conform to a specific contract
(public properties, empty public constructor)
* Extensions done through interfaces on objects (in
other words you must load CLR types to serialize or
deserialize the format)
* Only supports object trees (no graph support)

System.Runtime.Serialization

* Any object regardless of shape can be serialized
(properties, fields, events, private or public data)
Extensions done through declarative metadata
(DataContract attribute), which means you only need
metadata or schema to parse
* Graph or tree structure

XAML is designed to be more of a mix between a
document and a programming language (something like
ASP.NET's markup) with a fixed grammar where as
System.Serialization is designed to consume and
produce arbitrary XML and CLR graphs.

Source:
http://www.simplegeek.com/PermaLink.aspx/5b3e2155-800d-48ae-acb0-b1abb4ce1142


What's your take on it? Do you want XAML to be a
generic serialization engine or do you want to break
the 1:1 mapping between classes/properties and
tags/attributes to help make the XAML XML UI format
more compact and easier to read and edit?

- Gerald


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xul-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xul-talk+׭zf+,좷o"0j[狊{h&z{^ujxn)>קC|gN-ygZ
 
yzbg֦z{Zh+-zf)ڶ*'i&bw^;ѩeȝ߭%1[ZIXXd+-.ǟalb,y+޷b?+-wd

Reply via email to