Re: [ANN] XSD/e 1.0.0 - embedded XML parsing, validation and C++ data binding

"Mukesh Kumar" <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <7C83A8A6B56D3A478333B1DF47E185867886CD@MPBABGEX01.corp.mphasis.com>
Thanks for your input, I will try it out on this weekend for wince
version, and let me see how can I make use of complete wrappers.

Cheers   :)
Muki.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On
Behalf Of Boris Kolpackov
Sent: Wednesday, March 21, 2007 7:42 PM
To: [email protected]
Subject: Re: [Expat-discuss] [ANN] XSD/e 1.0.0 - embedded XML
parsing,validation and C++ data binding

Hi Mukesh,

"Mukesh Kumar" <[email protected]> writes:

> I have a small question, are you trying to be an opponent to expat , I
> mean the opposite one..

I am not exactly sure what you mean by opponent, or opposite.
Expat is a general-purpose, non-validating XML parser with a
SAX-like event-driven API. When you process your XML instances
with Expat you get notified of things like "element start tag",
"attribute", "text", "element end tag", In other words, it is
a raw representation of XML and it takes some extra work before
you can actually access the data stored in XML in a natural for
your application logic way.

In contrast, XSD/e gives you an API which is specific to your
XML vocabulary and application logic. It also provides
validation and data extraction. For example, if you had a
vocabulary like this:

<person>
  <name>John Does</name>
  <age>31</age>
</person>

The XSD/e-generated API will notify you of the events like,
"here is name, with value 'John Does' (string)", or "here is
age with value 32(int)".

So I wouldn't say that XSD/e is an "opponent" to Expat ;-).
XSD/e does some extra work for you which may or may not be
what you want depending on the application. In fact, XSD/e
includes a customized version of Expat to perform low-level
XML parsing and well-formedness checking!


hth,
-boris


_______________________________________________
Expat-discuss mailing list
[email protected]
http://mail.libexpat.org/mailman/listinfo/expat-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.