是时候为C / C ++标准化XML库了 [英] Time to standardize the XML library for C/C++

查看:50
本文介绍了是时候为C / C ++标准化XML库了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着XML成为事实上的数据描述标准,我非常惊讶于标准化用于C和C ++的

xml库API没有任何动静。就个人而言,我使用libxml2工作了

www.gnome.org )现在一段时间了,我很满意它。我相信libxml2是一个好的开始,但是我认为libxml2的一个更薄的版本应该是标准化的。

有什么想法吗?


问候,

Kong Posh

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

推荐答案

[删除交叉帖子]


Kong Bhat < KB *** @ sta.samsung.com>写了
[cross-posts removed]

"Kong Bhat" <kb***@sta.samsung.com> wrote
随着XML成为事实上的数据描述标准,我感到非常惊讶的是,没有朝着标准化xml库API的方向移动
与C一起使用和C ++。


首先,这是提出标准变更的错误论坛。你需要comp.std.c ++
。这个新闻组处理C ++,因为它是指定的,

而不是随机个体会看到它改变。

我个人一直在使用libxml2
(< a rel =nofollowhref =http://www.gnome.orgtarget =_ blank> www.gnome.org )一段时间了,而且我很舒服它。


那么你的问题是什么?如果它能满足您的需求,请继续使用它。

我相信libxml2是一个良好的开端,但我认为libxml2的较薄版本应该是标准化的。
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.




没有必要。 C ++与XML无关,并且使用您选择的库不会阻止您使用
。你不会在很脆弱的基础上任意添加库到

语言标准,很多人使用特定的

功能。 TCP / IP比XML更普遍,但是向标准C ++库添加套接字是非常荒谬的。数据库访问更加流行。你有一些类似ODBC的库也会添加到

标准吗? C ++标准委员会已经掌握了足够的资金,而无需跟踪对不相关标准的更改。让谁负责

XML标准,如果他们手上有免费的

时间,则为其他语言提供标准绑定。


Claudio Puviani



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


[删除交叉帖子]


" Kong Bhat" < KB *** @ sta.samsung.com>写了
[cross-posts removed]

"Kong Bhat" <kb***@sta.samsung.com> wrote
随着XML成为事实上的数据描述标准,我感到非常惊讶的是,没有朝着标准化xml库API的方向移动
与C一起使用和C ++。


首先,这是提出标准变更的错误论坛。你需要comp.std.c ++
。这个新闻组处理C ++,因为它是指定的,

而不是随机个体会看到它改变。

我个人一直在使用libxml2
(< a rel =nofollowhref =http://www.gnome.orgtarget =_ blank> www.gnome.org )一段时间了,而且我很舒服它。


那么你的问题是什么?如果它能满足您的需求,请继续使用它。

我相信libxml2是一个良好的开端,但我认为libxml2的较薄版本应该是标准化的。
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.




没有必要。 C ++与XML无关,并且使用您选择的库不会阻止您使用
。你不会在很脆弱的基础上任意添加库到

语言标准,很多人使用特定的

功能。 TCP / IP比XML更普遍,但是向标准C ++库添加套接字是非常荒谬的。数据库访问更加流行。你有一些类似ODBC的库也会添加到

标准吗? C ++标准委员会已经掌握了足够的资金,而无需跟踪对不相关标准的更改。让谁负责

XML标准,如果他们手上有免费的

时间,则为其他语言提供标准绑定。


Claudio Puviani



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


Kong Bhat写道:
Kong Bhat wrote:
随着XML成为事实上的数据描述标准,
我是非常惊讶的是,没有运动来标准化用于C和C ++的xml库API。
就我个人而言,我一直在使用libxml2( www.gnome.org
现在有一段时间了,我觉得很舒服。
我相信libxml2很好用开始
但我认为libxml2的更薄版本应该是标准化的。
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.




comp.std.c,comp.lang中的这个主题如何。 c或comp.lang.c ++?

你想让这个库成为标准库的一部分吗?

如果是这样,有没有令人信服的理由为什么库必须由编译器开发人员而不是第三方供应商实现


如果库可以由第三方供应商实现,那么

a标准与C / C ++标准分开可能是更好的选择。



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.


这篇关于是时候为C / C ++标准化XML库了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆