473,770 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Time to standardize the XML library for C/C++

With XML becoming the de facto data description standard, I am
extremely surprised that there is no movement towards standardizing an
xml library API for use with C and C++. Personally I have been
working with libxml2 (www.gnome.org) for a while now, and I am quite
comfortable with it. I believe that libxml2 is a good start, but I
think a slimmer version of libxml2 should be standardized.
Any thoughts?

Regards,
Kong Posh
Jul 22 '05
30 1996
Claudio Puviani wrote:
[cross-posts removed]

"Kong Bhat" <kb***@sta.sams ung.com> wrote
With XML becoming the de facto data description
standard, I am extremely surprised that there is no
movement towards standardizing an xml library API
for use with C and C++.
Firstly, this is the wrong forum to propose changes to the standard.


This really sounds more like a w3c issue. http://www.w3.org/DOM/ . I will
suggest there are two possible areas where a standard C++ API would be
worth pursuing. DOM, and SAX. I don't use SAX directly, so I have little
to say about it. As regards the DOM, there is an abstract IDL binding which
may, for all intents and purposes already define a C++ binding. I'm not an
expert in IDL, but I'm pretty sure it originated in the C++ world.

http://www.w3.org/TR/2002/WD-DOM-Lev...finitions.html

Apache has this proposal out:

http://xml.apache.org/xerces-c/Apach...BindingL3.html

There's no need for it. C++ has no ties to XML and doesn't prevent you
from using a library of your choice. You don't arbitrarily add libraries
to a language standard on the flimsy basis that a lot of people use a
particular feature. TCP/IP is far more prevalent than XML, yet it would be
absurd to add sockets to the standard C++ library. Database access is even
more prevalent. Would you have some ODBC-like library also be added to the
standard? The C++ standard committee has enough on their hands without
tracking changes to unrelated standards. Let whoever is responsible for
the XML standard provide standard bindings for other languages if they
have free time on their hands.


I believe the goal is worthwhile. It is simply not a core language issue.
It's a w3c issue.
--
p->m == (*p).m == p[0].m
http://www.kdevelop.org
http://www.suse.com
http://www.mozilla.org
Jul 22 '05 #11
Steven T. Hatton wrote:
Claudio Puviani wrote:
[cross-posts removed]

"Kong Bhat" <kb***@sta.sams ung.com> wrote
With XML becoming the de facto data description
standard, I am extremely surprised that there is no
movement towards standardizing an xml library API
for use with C and C++.


Firstly, this is the wrong forum to propose changes to the standard.


This really sounds more like a w3c issue. http://www.w3.org/DOM/ . I will
suggest there are two possible areas where a standard C++ API would be
worth pursuing. DOM, and SAX. I don't use SAX directly, so I have little
to say about it. As regards the DOM, there is an abstract IDL binding
which
may, for all intents and purposes already define a C++ binding. I'm not
an expert in IDL, but I'm pretty sure it originated in the C++ world.


I'm not sure what this really means, but I just found the following in the
CORBA specification, v3.0.3:

http://www.omg.org/cgi-bin/doc?formal/04-03-12

"OMG IDL is preprocessed according to the specification of the preprocessor
in International Organization for Standardization . 1998. ISO/IEC 14882
Standard for the C++ Programming Language. Geneva: International
Organization for Standardization . The preprocessor may be implemented as a
separate process or built into the IDL compiler."

--
p->m == (*p).m == p[0].m
http://www.kdevelop.org
http://www.suse.com
http://www.mozilla.org
Jul 22 '05 #12
Steven T. Hatton wrote:
Claudio Puviani wrote:
[cross-posts removed]

"Kong Bhat" <kb***@sta.sams ung.com> wrote
With XML becoming the de facto data description
standard, I am extremely surprised that there is no
movement towards standardizing an xml library API
for use with C and C++.


Firstly, this is the wrong forum to propose changes to the standard.


This really sounds more like a w3c issue. http://www.w3.org/DOM/ . I will
suggest there are two possible areas where a standard C++ API would be
worth pursuing. DOM, and SAX. I don't use SAX directly, so I have little
to say about it. As regards the DOM, there is an abstract IDL binding
which
may, for all intents and purposes already define a C++ binding. I'm not
an expert in IDL, but I'm pretty sure it originated in the C++ world.


I'm not sure what this really means, but I just found the following in the
CORBA specification, v3.0.3:

http://www.omg.org/cgi-bin/doc?formal/04-03-12

"OMG IDL is preprocessed according to the specification of the preprocessor
in International Organization for Standardization . 1998. ISO/IEC 14882
Standard for the C++ Programming Language. Geneva: International
Organization for Standardization . The preprocessor may be implemented as a
separate process or built into the IDL compiler."

--
p->m == (*p).m == p[0].m
http://www.kdevelop.org
http://www.suse.com
http://www.mozilla.org
Jul 22 '05 #13
"Steven T. Hatton" <su******@setid ava.kushan.aa> wrote:
As regards the DOM, there is an abstract IDL binding which
may, for all intents and purposes already define a C++ binding. I'm not an
expert in IDL, but I'm pretty sure it originated in the C++ world.


No, it did not: it originated in the C world. One stated goal of the C++
binding for CORBA was some form of compatibility to C. Although I accept
that the motives were well-intended, the resulting C++ binding is a pain
in the ass (using a much weaker term than I would have used in my native
language). This view can, of course, be attributed to ignorance about the
finer points of the C++ binding on my side.

That said, any realization of W3C's DOM in C++ using any other approach
than a liberal interpretation of their model will be useless already.
Bolting the CORBA C++ on top of this will definitely not improve the
situation - unless, of course, your goal is the creation of the slowest
and hardest to use [correctly] XML processor so far.
--
<mailto:di***** ******@yahoo.co m> <http://www.dietmar-kuehl.de/>
<www.contendix. com> - Software Development & Consulting
Jul 22 '05 #14
"Steven T. Hatton" <su******@setid ava.kushan.aa> wrote:
As regards the DOM, there is an abstract IDL binding which
may, for all intents and purposes already define a C++ binding. I'm not an
expert in IDL, but I'm pretty sure it originated in the C++ world.


No, it did not: it originated in the C world. One stated goal of the C++
binding for CORBA was some form of compatibility to C. Although I accept
that the motives were well-intended, the resulting C++ binding is a pain
in the ass (using a much weaker term than I would have used in my native
language). This view can, of course, be attributed to ignorance about the
finer points of the C++ binding on my side.

That said, any realization of W3C's DOM in C++ using any other approach
than a liberal interpretation of their model will be useless already.
Bolting the CORBA C++ on top of this will definitely not improve the
situation - unless, of course, your goal is the creation of the slowest
and hardest to use [correctly] XML processor so far.
--
<mailto:di***** ******@yahoo.co m> <http://www.dietmar-kuehl.de/>
<www.contendix. com> - Software Development & Consulting
Jul 22 '05 #15
Dietmar Kuehl wrote:
"Steven T. Hatton" <su******@setid ava.kushan.aa> wrote:
As regards the DOM, there is an abstract IDL binding which
may, for all intents and purposes already define a C++ binding. I'm not
an expert in IDL, but I'm pretty sure it originated in the C++ world.


No, it did not: it originated in the C world. One stated goal of the C++
binding for CORBA was some form of compatibility to C. Although I accept
that the motives were well-intended, the resulting C++ binding is a pain
in the ass (using a much weaker term than I would have used in my native
language). This view can, of course, be attributed to ignorance about the
finer points of the C++ binding on my side.


I think this means you don't like the way CORBA (as opposed to the DOM) is
bound to/in C++. Is that correct? If that is what you are intending, I
would like to know more. From my limited understanding of these issues,
this is an area where J2EE has really taken the market share from C++. At
least this is how it looked to me from pretty close to the frontlines.
People were talking CORBA/IIOP and IDL in 1996, and by 2000 the buzz was
all Java Servlets.
--
p->m == (*p).m == p[0].m
http://www.kdevelop.org
http://www.suse.com
http://www.mozilla.org
Jul 22 '05 #16
Dietmar Kuehl wrote:
"Steven T. Hatton" <su******@setid ava.kushan.aa> wrote:
As regards the DOM, there is an abstract IDL binding which
may, for all intents and purposes already define a C++ binding. I'm not
an expert in IDL, but I'm pretty sure it originated in the C++ world.


No, it did not: it originated in the C world. One stated goal of the C++
binding for CORBA was some form of compatibility to C. Although I accept
that the motives were well-intended, the resulting C++ binding is a pain
in the ass (using a much weaker term than I would have used in my native
language). This view can, of course, be attributed to ignorance about the
finer points of the C++ binding on my side.


I think this means you don't like the way CORBA (as opposed to the DOM) is
bound to/in C++. Is that correct? If that is what you are intending, I
would like to know more. From my limited understanding of these issues,
this is an area where J2EE has really taken the market share from C++. At
least this is how it looked to me from pretty close to the frontlines.
People were talking CORBA/IIOP and IDL in 1996, and by 2000 the buzz was
all Java Servlets.
--
p->m == (*p).m == p[0].m
http://www.kdevelop.org
http://www.suse.com
http://www.mozilla.org
Jul 22 '05 #17
ri*****@cogsci. ed.ac.uk (Richard Tobin) wrote in message news:<c5******* ***@pc-news.cogsci.ed. ac.uk>...
In article <8d************ **************@ posting.google. com>,
Kong Bhat <kb***@sta.sams ung.com> wrote:
With XML becoming the de facto data description standard, I am
extremely surprised that there is no movement towards standardizing an
xml library API for use with C and C++.


It would not be appropriate to make this part of the C standard.
There are a million things that should be standardized first:
we don't even have lists or hash tables!

-- Richard


Kindly note that I am only in favor of standardizing the API. There
could be multiple implementations that conform to that API (including
Richard's very own "newRXP" parser), in much the same way that we have
standard APIs for I/O handling, string manipulation, mathematical
functions etc. The big advantage of that would be that code written
to handle XML processing would become extremely portable.

I will put my money on the prediction that XML processing within C/C++
applications will take off in a very very big way in the next few
years, especially as the use of WebServices becomes more widespread.
That is why I strongly feel that the time is ripe to move towards
standardizing this API.

Regards,
Kong Posh
Jul 22 '05 #18
ri*****@cogsci. ed.ac.uk (Richard Tobin) wrote in message news:<c5******* ***@pc-news.cogsci.ed. ac.uk>...
In article <8d************ **************@ posting.google. com>,
Kong Bhat <kb***@sta.sams ung.com> wrote:
With XML becoming the de facto data description standard, I am
extremely surprised that there is no movement towards standardizing an
xml library API for use with C and C++.


It would not be appropriate to make this part of the C standard.
There are a million things that should be standardized first:
we don't even have lists or hash tables!

-- Richard


Kindly note that I am only in favor of standardizing the API. There
could be multiple implementations that conform to that API (including
Richard's very own "newRXP" parser), in much the same way that we have
standard APIs for I/O handling, string manipulation, mathematical
functions etc. The big advantage of that would be that code written
to handle XML processing would become extremely portable.

I will put my money on the prediction that XML processing within C/C++
applications will take off in a very very big way in the next few
years, especially as the use of WebServices becomes more widespread.
That is why I strongly feel that the time is ripe to move towards
standardizing this API.

Regards,
Kong Posh
Jul 22 '05 #19
Kong Bhat wrote:

With XML becoming the de facto data description standard, I am
extremely surprised that there is no movement towards standardizing an
xml library API for use with C and C++. Personally I have been
working with libxml2 (www.gnome.org) for a while now, and I am quite
comfortable with it. I believe that libxml2 is a good start, but I
think a slimmer version of libxml2 should be standardized.

Any thoughts?


That's an excellent idea - whoever is responsible for XML should
establish a standard library for generating/parsing it. Such a library
would, of course, be too specialized to have any proper place in the
C/C++ standard libraries.
Jul 22 '05 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1651
by: Generic Usenet Account | last post by:
The C/C++ libxml library from xmfsoft (www.xmlsoft.org ---- GNOME project) has in excess of 1000 APIs (http://www.xmlsoft.org/APIfunctions.html). This excessively high number of APIs is beyond the realm of any human being to grasp. IMHO, an effort should be made to delineate the "public" APIs from the "private" APIs, so that the application developers can forget about the latter. Also, some guidance should be provided regarding the most...
30
1584
by: Kong Bhat | last post by:
With XML becoming the de facto data description standard, I am extremely surprised that there is no movement towards standardizing an xml library API for use with C and C++. Personally I have been working with libxml2 (www.gnome.org) for a while now, and I am quite comfortable with it. I believe that libxml2 is a good start, but I think a slimmer version of libxml2 should be standardized. Any thoughts?
14
2194
by: artifact.one | last post by:
It'd be really pleasant (in my opinion) if the next revision of the C language actually allowed some portable control over data alignment. Compiler-specific mechanisms for this stuff are so varied that it becomes impossible to even abstract the details away behind preprocessor macros. What I'd like to see:
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8931
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.