简体   繁体   English

配置文件XML-解析库C / C ++-Android,IOS,桌面

[英]Configuration file XML - Parsing Library C/C++ - Android, IOS, Desktop

I have a large C program which needs to communicate some XML files to Java/Obj-C and other languages. 我有一个大型C程序,需要将一些XML文件传送到Java / Obj-C和其他语言。 99% of the program business logic is in C/C++ mix. 程序业务逻辑的99%是C / C ++组合。 Java, Obj-C all have a way to parse XML and in most cases I'll be using HTML5 and Javascript (via PhoneGap) to parse the XML on that end. Java,Obj-C都有解析XML的方法,并且在大多数情况下,我将使用HTML5和Javascript(通过PhoneGap)来解析XML。 The part that is frustrating is finding a decent C or C++ library that compiles on each platform and is relatively straight forward to use. 令人沮丧的是找到了一个不错的C或C ++库,该库可以在每个平台上编译并且相对简单易用。

I've looked into libxml2 first. 我首先研究了libxml2。 It is not easy to get compiling for Android at least, required ICU4 to get working. 至少要为Android编译并不容易,这需要ICU4才能正常工作。 I then checked out libroxml, unfortunately its xml modification core is weak at best. 然后我签出了libroxml,不幸的是,它的xml修改核心充其量是弱的。

Does anyone have a tip for a nice XML Parsing library that isn't hell to compile or use? 有没有人为您提供一个不错的XML解析库的提示,使您无法编译或使用它? That supports modification of the XML file? 那支持修改XML文件吗? Do I need to be concerned about language support (unicode)? 我是否需要关注语言支持(unicode)?

TinyXML seems like the way to go. TinyXML似乎是要走的路。 http://sourceforge.net/projects/tinyxml/ http://sourceforge.net/projects/tinyxml/

Small, supports modification of the tree, utf8 and compiles easily (just a few files, no platform dependencies). 体积小,支持修改树,utf8并易于编译(仅几个文件,没有平台依赖性)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM