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

Re: XML Parser with DOM in C

  • From: "Rick Jelliffe" <ricko@a...>
  • To: "David E. Cleary" <davec@p...>,<xml-dev@i...>
  • Date: Thu, 11 Feb 1999 03:48:46 +1100

dom for c
 From: David E. Cleary <davec@p...>

>I'm looking for a C based XML parser with the DOM API to license.
Doesn't
>have to be free or open source. Or is anybody working on putting the
DOM on
>top of expat besides Mozilla?

I have been working on something like this. Please contact me for
information. This is *not* a product announcement.

DOM is a very simple and generic interface system, aimed at access to
already-built trees (e.g., GROVES). It is a little contradictory that
DOM uses IDL, and hence is useful for networked access to tree objects,
since that is what XML was for too! I guess XML is for loosely-coupled
systems...

The kinds of decisions you need to make with implementing DOM in C
include:
    * is it part of a distributed object systems (e.g. CORBA) (mine
isnt);
    * do you really want to use wide chars rather than UTF-8 (for C,
there are many good readons to keep with UTF-8 as much as possible);
    * what is your implementation of an object reference) (if there is
no networking, it can be a pointer);
    * what is your implementation of the underlying data structures
(which implies an idea of the probable uses of your system); this is in
fact the biggest part;
    * do you really want to pass the environment back (if you are not in
multi-threaded or CORBA, why not just pass errors back in a global,
instead of wasting a function argument?)

Why would anyone be interested in a C non-CORBA DOM?  Well, the reasons
I would give are:
    * to have consistant (but highly generic) access to structures
regardless of the DTD, and regardless of the markup notation used (XML,
CGM); there are generic operations (e.g., asking the type of an element
node) which a generic inteface should be well appropriate for;
  * to be able to upgrade to a distributed object implementation in the
future; if you are like me, maybe you don't care or need to learn CORBA
at the moment,  but you would like you program to use the basic DOM
operations;
   * you have to use C and you do not need CORBA.

Rick Jelliffe




xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.