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

Re: Relax NG, Thoughts, etc.


relax ng ordered
Rich Salz wrote:

>>If one uses XML for serializing objects and nothing else, then things
>>get easier. But developing real systems would get easier if there was a
>>way of developing them so that validity (well-typedness) is checked
>>statically.
>>    
>>
>
>Sure, as long as (a) everyone is using the same object system, and (b)
>you're not worried about an adversary sending data that will cause your
>object-creation code to create bad/dangerous/evil objects; and (c) you are
>not worried about your objects leaking internal information, or (c') you
>take steps to prevent this, such as by having internal and external/proxy
>objects.
>
>That's a pretty powerful set of concerns, I think, and I wouldn't
>particularly call any of them easy.
>
>  
>
Just to be clear, I am not in favour of the "xml is just serialized 
objects" view. That is basically what is underlying something like C-omega.

Still, I'd say (a) is not so much of a concern, because partners might 
use some agreed on XSD with different object systems (or not objects at 
all).

If Relax NG provided something like substitution groups or type 
extension, then the "xml is objects" people could use Relax NG schemata, 
but then Relax NG would have some of the problems XSD has (see my 
"closed-world" post).

>If you treat XML as the data, and not as an objevct serialization format,
>then (a) you get to use the new cool SOA buzzword; and (b) you tend to
>build safer systems.
>  
>
Yes. There's still adversaries that want to buffer-overflow parsers, but 
at least there is no need to deal with the object-markup mismatch. But 
my feeling is that people will use the buzzword for everything, and 
there will be a stronger drift towards data binding.

Also for treating XML as pure data, one would appreciate more support by 
the compiler.

The primary problem with objects and schemata is that objects do not 
have ordered successors that can be specified by regular expressions. 
Maybe by making objects a bit more like markup, that mismatch is diminished?

cheers,
Burak

http://lamp.epfl.ch/~buraq


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.