C#中可以使用xerces-c++解析器么?

lemondancing 2003-03-24 05:53:37
C#中可以使用xerces-c++解析器么?
如果可以 该如何导入?
谢谢。
...全文
56 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
lemondancing 2003-03-26
  • 打赏
  • 举报
回复
对了,如果我已经有xerces_c++的源代码,能否不使用P/Invoke,而是在C#中直接使用他的源程序? 如果可以的话该如何使用呢?
saucer 2003-03-26
  • 打赏
  • 举报
回复
you probably need to use P/Invoke to use XERCES, that is an extra layer to call through, I doubt it will be 在.net平台下更加高效.

I sincerely suggest you use classes in System.Xml namespace
lemondancing 2003-03-26
  • 打赏
  • 举报
回复
呵呵 谢谢大侠的指点。
不过现在我们的问题是在.net下用C#开发了一个小工具,使用了MSXML。
所以我们真正想弄清楚的是xerces-c++能否在.net平台下更加高效。
lemondancing 2003-03-26
  • 打赏
  • 举报
回复
我下了xerces-c++ 其中包含xerces-c_2_2_0.dll,但在将其添加引用时出现了错误,说它不是有效的程序集或组件。
参考了一些书籍,似乎是要使用Regsvr32注册dll。但执行后提示"DLLRegisterServer enty point was not found"。
这是什么问题呢?该如何解决呢?
saucer 2003-03-26
  • 打赏
  • 举报
回复
do the comparisons in C++, for example, MSXML vs XERCES vs .NET XML parser, that is more fair, don't you think?
lemondancing 2003-03-26
  • 打赏
  • 举报
回复
因为偶们头觉得.net内建的解析器性能不佳,想换其他的解析器进行比较:)
saucer 2003-03-25
  • 打赏
  • 举报
回复
why do you want to use a C++ parser in C#?

there are a lot of classes in System.Xml namespace. For stream-based parsing, you can use XmlTextReader, for DOM-based, you can use XmlDocument
TheAres 2003-03-25
  • 打赏
  • 举报
回复
没有直接的办法使用这个解析器,好像对于的是msxml的解析器。
不过你可以通过添加引用的方式,把这个com控件添加进来使用(如果是用的话)。

110,533

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧