473,765 Members | 2,070 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 #1
30 1993
[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. You
want comp.std.c++ for that. This newsgroup deals with C++ as it's specified,
not as random individuals would see it changed.
Personally I have been working with libxml2
(www.gnome.org) for a while now, and I am quite
comfortable with it.
So what's your problem? If it does what you need, just keep using it.
I believe that libxml2 is a good start, but I think a
slimmer version of libxml2 should be standardized.


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.

Claudio Puviani
Jul 22 '05 #2
[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. You
want comp.std.c++ for that. This newsgroup deals with C++ as it's specified,
not as random individuals would see it changed.
Personally I have been working with libxml2
(www.gnome.org) for a while now, and I am quite
comfortable with it.
So what's your problem? If it does what you need, just keep using it.
I believe that libxml2 is a good start, but I think a
slimmer version of libxml2 should be standardized.


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.

Claudio Puviani
Jul 22 '05 #3
Kong Bhat wrote:
With XML becoming the de facto data description standard,
I am extremely surprised that there is no movement
toward 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.


How is this on-topic in comp.std.c, comp.lang.c or comp.lang.c++?
Do you want to make this library part of the standard library?
If so, is there a compelling reason why this library must be implemented
by the compiler developer and not a third party vendor?
If the library can be implemented by third party vendors, then
a standard separate from the C/C++ standards may be a better option.

Jul 22 '05 #4
Kong Bhat wrote:
With XML becoming the de facto data description standard,
I am extremely surprised that there is no movement
toward 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.


How is this on-topic in comp.std.c, comp.lang.c or comp.lang.c++?
Do you want to make this library part of the standard library?
If so, is there a compelling reason why this library must be implemented
by the compiler developer and not a third party vendor?
If the library can be implemented by third party vendors, then
a standard separate from the C/C++ standards may be a better option.

Jul 22 '05 #5
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
Jul 22 '05 #6
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
Jul 22 '05 #7
Kong Bhat wrote:
... I think a slimmer version of libxml2 should be standardized.


"Feel free."
Jul 22 '05 #8
Kong Bhat wrote:
... I think a slimmer version of libxml2 should be standardized.


"Feel free."
Jul 22 '05 #9
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 #10

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

Similar topics

3
1650
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
1582
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
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
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
10156
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9951
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8831
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
7375
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...
1
3924
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
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
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.