开发者

Which XSLT Processor for C++?

开发者 https://www.devze.com 2023-03-30 22:27 出处:网络
I started off with Xalan for C++, but that really seemed like overkill for this project. I will have an XML file in memory, there is one stylesheet to run it through... and that\'s pretty much it.

I started off with Xalan for C++, but that really seemed like overkill for this project. I will have an XML file in memory, there is one stylesheet to run it through... and that's pretty much it.

The input XML and the stylesheet are all in-house and validated for integrity before it gets to my code so I really just wanted the simplest way to do this sort of transformation. I looked at libxslt, but it's C-based. The home page referred me to xmlwrapp which I started working with only to find out that this project hasn't been supported for a while.

Do you think xmlwrapp is a good choice for my needs, or would you recommend a different libr开发者_StackOverflow中文版ary?


C libraries integrate well will C++ code. The only issue is if the library itself is compiled as C it will not have C++ style name mangling. This can easily be worked around by ensuring that all the headers have the extern "C" { ... } wrappers. Most C libraries will already have this together with the #ifdef __cplusplus preprocessor statement which allows total interoperability with C++. Bearing this in mind you should be able to use libxslt directly

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号