本文介绍了是时候为C / C ++标准化XML库了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 限时删除!! 随着XML成为事实上的数据描述标准,我非常惊讶于标准化用于C和C ++的 xml库API没有任何动静。就个人而言,我使用libxml2工作了 ( www.gnome.org )现在一段时间了,我很满意它。我相信libxml2是一个好的开始,但是我认为libxml2的一个更薄的版本应该是标准化的。 有什么想法吗? 问候, Kong PoshWith XML becoming the de facto data description standard, I amextremely surprised that there is no movement towards standardizing anxml library API for use with C and C++. Personally I have beenworking with libxml2 (www.gnome.org) for a while now, and I am quitecomfortable with it. I believe that libxml2 is a good start, but Ithink a slimmer version of libxml2 should be standardized.Any thoughts?Regards,Kong Posh推荐答案 没有必要。 C ++与XML无关,并且使用您选择的库不会阻止您使用。你不会在很脆弱的基础上任意添加库到 语言标准,很多人使用特定的 功能。 TCP / IP比XML更普遍,但是向标准C ++库添加套接字是非常荒谬的。数据库访问更加流行。你有一些类似ODBC的库也会添加到 标准吗? C ++标准委员会已经掌握了足够的资金,而无需跟踪对不相关标准的更改。让谁负责 XML标准,如果他们手上有免费的 时间,则为其他语言提供标准绑定。 Claudio PuvianiThere''s no need for it. C++ has no ties to XML and doesn''t prevent you fromusing a library of your choice. You don''t arbitrarily add libraries to alanguage standard on the flimsy basis that a lot of people use a particularfeature. TCP/IP is far more prevalent than XML, yet it would be absurd toadd sockets to the standard C++ library. Database access is even moreprevalent. Would you have some ODBC-like library also be added to thestandard? The C++ standard committee has enough on their hands withouttracking changes to unrelated standards. Let whoever is responsible for theXML standard provide standard bindings for other languages if they have freetime on their hands.Claudio Puviani 没有必要。 C ++与XML无关,并且使用您选择的库不会阻止您使用。你不会在很脆弱的基础上任意添加库到 语言标准,很多人使用特定的 功能。 TCP / IP比XML更普遍,但是向标准C ++库添加套接字是非常荒谬的。数据库访问更加流行。你有一些类似ODBC的库也会添加到 标准吗? C ++标准委员会已经掌握了足够的资金,而无需跟踪对不相关标准的更改。让谁负责 XML标准,如果他们手上有免费的 时间,则为其他语言提供标准绑定。 Claudio PuvianiThere''s no need for it. C++ has no ties to XML and doesn''t prevent you fromusing a library of your choice. You don''t arbitrarily add libraries to alanguage standard on the flimsy basis that a lot of people use a particularfeature. TCP/IP is far more prevalent than XML, yet it would be absurd toadd sockets to the standard C++ library. Database access is even moreprevalent. Would you have some ODBC-like library also be added to thestandard? The C++ standard committee has enough on their hands withouttracking changes to unrelated standards. Let whoever is responsible for theXML standard provide standard bindings for other languages if they have freetime on their hands.Claudio Puviani 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 implementedby the compiler developer and not a third party vendor?If the library can be implemented by third party vendors, thena standard separate from the C/C++ standards may be a better option. 这篇关于是时候为C / C ++标准化XML库了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的.. 09-06 08:39