[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: JavaScript (was Re: Whither XML ?)

  • From: "Alexander Philippou" <alex@noemax.com>
  • To: "'Richard Salz'" <rsalz@us.ibm.com>
  • Date: Thu, 11 Nov 2010 23:00:54 +0200

RE:  JavaScript (was Re:  Whither XML ?)
> > Just use Fast Infoset. There are several FI implementations around. Combined with GZIP they should give you excellent results in terms of both compactness and performance.
> 
> But doesn't that require you to first know the schema of every thing you'll be sending and receiving?  That's not always possible.

No, Fast Infoset is not schema dependent (maybe you were thinking of EXI?). There is never any requirement to know the schema in order to encode/decode an FI document. To use FI you just replace the XmlTextReader/Writer with the XmlFastInfosetReader/Writer. The FI writer supports three representations (literal/binary/restricted alphabet) that can be used to encode numeric/datetime/boolean values (binary values are always encoded as binary). If a numeric/datetime/boolean value is written using the methods provided by the FI API (e.g. WriteValue(Double)) then the writer will select the representation it considers as most efficient for this particular value, otherwise this value will be written as literal. When writing a value the representation used to encode it is also written within the FI document. This means that the same document can be encoded in several different ways (for example, with emphasis on compactness or on processing performance) but the FI reader will always be able to decode all values irrespective of how the FI writer encoded them. So no schema is needed either when encoding or when decoding FI.

Alexander



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.