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

Re: nestable C/C++ XML parser?

  • From: Paul Miller <stele@f...>
  • Date: Tue, 07 Dec 1999 13:20:23 -0500

cf xml
> Sure, I too see a need for this, and I've even implemented it.
> However, this is something completely different from doing parsing on
> behalf of the parser. Parsing is turning a stream of bytes (or
> characters) into something higher-level, but this is not what you are
> talking about.
> 
> As far as I understood him, the original poster wanted to do the
> parsing (that is, the reading and interpretation of bytes/chars) on
> behalf of expat.
 
This is more or less correct. I want to use XML as an application data
file format. Why? Two primary reasons:
1. I don't need/want to invent a new syntax - I like XML just fine and
it handles object-oriented nesting of data quite nicely
2. I can publish a DTD and make it easier for my end-users to use my
application data in their own applications (I work in special effects
applications, and certain high-end customers like to use my data in
their own custom tools) without doing a lot of hand-holding

Whether this constitutes a "good enough" reason to use XML I don't know.
The primary use of XML seems to be web-oriented e-commerse stuff, of
which I don't give a hoot about (I'll leave that stuff to the web
experts).

Given my needs, I know the data in the XML file, and I know what to do
with it once I get to it. But I *do not* want to go with the huge
complexity of DOM. I've indicated in a previous thread the kind of API
I'd like to access the data. I was hoping expat would let me do nested
parsing, but it doesn't.

Frankly, for this kind of application file format stuff, validation and
namespaces probably aren't really necessary, but I want to use the XML
syntax mostly because it's well defined. This means I'll probably have
to implement my own restartable low-level "parser" which just deals with
the syntax and the basics. I was hoping to layer on expat, for no other
reason than to gain free validation once expat gets it, but considering
my needs this probably isn't necessary, and it's just a bit more work
for me.

>From this (and other discussions) it looks like this type of XML parser
for application data would be generally useful (in the C/C++ community),
so I'll be sure to make my efforts available.

--
Paul Miller - stele@f...

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 unsubscribe, mailto:majordomo@i... the following message;
unsubscribe 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.